Load image on interruptible thread

Ideas for improvements and requests for new features in XnView Classic

Moderators: XnTriq, xnview

Post Reply
Brasileiro
Posts: 3
Joined: Tue Dec 27, 2005 1:46 pm

Load image on interruptible thread

Post by Brasileiro » Tue Dec 27, 2005 2:04 pm

Hello,

I like XnView a lot, it's a great program. Keep up the good work!

I'd like to make a suggestion, don't know if it would be too complicated to implement: the image loading should be on a separate thread, and that thread could be interrupted by the user.

Let me explain why: imagine you are browsing a folder with a lot of big jpg images, from your digital camera. I browse thru them with the scroll wheel, either in window of full screen mode. You have to wait each image to finish loading before you can scroll to the next one. If the image loading thread could be interrupted each time you scroll the wheel or press page up/page down, you could browse thru the images a lot quicker.

Don't know if the author would be offended by me comparing XnView to ACDSee classic (for Windows, version 2.43, www.oldversion.com) but it works like this, and it is the only reason why I still use it as my default image viewer app instead of XnView.

User avatar
xnview
Author of XnView
Posts: 32403
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Load image on interruptible thread

Post by xnview » Wed Dec 28, 2005 8:16 am

Brasileiro wrote:Hello,

I like XnView a lot, it's a great program. Keep up the good work!

I'd like to make a suggestion, don't know if it would be too complicated to implement: the image loading should be on a separate thread, and that thread could be interrupted by the user.

Let me explain why: imagine you are browsing a folder with a lot of big jpg images, from your digital camera. I browse thru them with the scroll wheel, either in window of full screen mode. You have to wait each image to finish loading before you can scroll to the next one. If the image loading thread could be interrupted each time you scroll the wheel or press page up/page down, you could browse thru the images a lot quicker.

Don't know if the author would be offended by me comparing XnView to ACDSee classic (for Windows, version 2.43, www.oldversion.com) but it works like this, and it is the only reason why I still use it as my default image viewer app instead of XnView.
It's added in fullscreen mode for next release...
Pierre.

User avatar
Olivier_G
XnThusiast
Posts: 1423
Joined: Thu Dec 23, 2004 7:17 pm
Location: Paris, France
Contact:

Re: Load image on interruptible thread

Post by Olivier_G » Wed Dec 28, 2005 11:58 am

xnview wrote:It's added in fullscreen mode for next release...
Wow!!! That is great news indeed!
Really a major improvement for XnView. Bravo!

Olivier
PS: I believe it's not implemented in 1.82b2?

User avatar
xnview
Author of XnView
Posts: 32403
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Load image on interruptible thread

Post by xnview » Wed Dec 28, 2005 12:17 pm

Olivier_G wrote:
xnview wrote:It's added in fullscreen mode for next release...
Wow!!! That is great news indeed!
Really a major improvement for XnView. Bravo!

Olivier
PS: I believe it's not implemented in 1.82b2?
No, you should have it in 1.82b2!
Pierre.

User avatar
Olivier_G
XnThusiast
Posts: 1423
Joined: Thu Dec 23, 2004 7:17 pm
Location: Paris, France
Contact:

Re: Load image on interruptible thread

Post by Olivier_G » Wed Dec 28, 2005 12:32 pm

xnview wrote:No, you should have it in 1.82b2!
I can't confirm: XnView always load/show completely each picture before proceding to the next one, even if I keep changing (with wheel and keyboard).
I tried with View>Filelist>Cache enabled and disabled, in open->Fullscreen, Browser->Fullscreen and Viewer->Fullscreen... without success. :(

Can someone experience/confirm this new improvement?

Olivier

User avatar
xnview
Author of XnView
Posts: 32403
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Load image on interruptible thread

Post by xnview » Wed Dec 28, 2005 2:51 pm

Olivier_G wrote:
xnview wrote:No, you should have it in 1.82b2!
I can't confirm: XnView always load/show completely each picture before proceding to the next one, even if I keep changing (with wheel and keyboard).
I tried with View>Filelist>Cache enabled and disabled, in open->Fullscreen, Browser->Fullscreen and Viewer->Fullscreen... without success. :(

Can someone experience/confirm this new improvement?
Do you have enabled "read ahead"? Perhaps it would be good to start a new topic in beta
Pierre.

Brasileiro
Posts: 3
Joined: Tue Dec 27, 2005 1:46 pm

Post by Brasileiro » Thu Dec 29, 2005 4:04 pm

Thanks for your prompt response Pierre!

I've downloaded 1.82b2 and couldn't feel the difference in fullscreen mode... I've even configured the auto image resize to no fit. Could you make it so that each time you scroll the mouse wheel (for each "click") it skips to the next (or previous) image? When I scroll the wheel quickly it still misses most of the commands.

Maybe if it's not asking too much, the zooming (high quality, which probably takes more time than loading the pictures) could be on an interruptible thread too.

User avatar
Dreamer
XnThusiast
Posts: 4605
Joined: Sun Jul 25, 2004 9:08 pm
Location: Slovakia

Post by Dreamer » Fri Dec 30, 2005 12:05 am

Brasileiro, please post problems with beta in beta sections (1.82 Testing). Thanks.
Brasileiro wrote:Maybe if it's not asking too much, the zooming (high quality, which probably takes more time than loading the pictures) could be on an interruptible thread too.
There is already "Delayed HQ...", but just for fullscreen from browser (there are 2 fullscreen modes).

User avatar
xnview
Author of XnView
Posts: 32403
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview » Mon Jan 02, 2006 11:06 am

Brasileiro wrote:Thanks for your prompt response Pierre!

I've downloaded 1.82b2 and couldn't feel the difference in fullscreen mode... I've even configured the auto image resize to no fit. Could you make it so that each time you scroll the mouse wheel (for each "click") it skips to the next (or previous) image? When I scroll the wheel quickly it still misses most of the commands.

Maybe if it's not asking too much, the zooming (high quality, which probably takes more time than loading the pictures) could be on an interruptible thread too.
Please continue on the beta topic...
Pierre.

Post Reply