Lossless Crop Speed (inexplicably slow)

Bugs which are supposed to be fixed in the next test version (not available yet)

Moderators: xnview, Dreamer

Post Reply
meteorquake
Posts: 115
Joined: Wed Sep 13, 2023 9:37 am

Lossless Crop Speed (inexplicably slow)

Post by meteorquake »

When I losslessly crop a jpeg, the jpegcrop.exe tool is very fast (though its interface is clunky). By contrast, xnview is unexpectedly slow, even on ideal boundaries, although I reckon it used to be much faster.
I wonder if there's any way to improve this as you feel the speed difference, or is there an insurmountable reason for this?
David
stew11
Posts: 3
Joined: Fri Apr 11, 2025 11:32 am

Re: Lossless Crop Speed (inexplicably slow)

Post by stew11 »

But XnView simply used to be faster! Version 1.9.5 crops almost instantly. From 1.9.6 it takes a while longer (noticeably)... Why? I ofen use this feature, so I downgraded to 1.9.5 for now.
meteorquake
Posts: 115
Joined: Wed Sep 13, 2023 9:37 am

Re: Lossless Crop Speed (inexplicably slow)

Post by meteorquake »

I'm glad it's not just me!
In fact, even a tiny JPG of a mere 30K in size takes a long time to crop (not much different from a 7 Mb one) so it's presumably not caused by inadvertently decoding the picture or something (I did check the crop was also lossless using 1200 x 1200 based on 0,0 and it does seem to be)
So it is a mystery...
User avatar
xnview
Author of XnView
Posts: 47034
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Lossless Crop Speed (inexplicably slow)

Post by xnview »

please send us a jpeg sample file?
Pierre.
meteorquake
Posts: 115
Joined: Wed Sep 13, 2023 9:37 am

Re: Lossless Crop Speed (inexplicably slow)

Post by meteorquake »

sample tiny file attached, which is very slow to do a lossless crop within (tested just now on 1.9.8 )
You do not have the required permissions to view the files attached to this post.
stew11
Posts: 3
Joined: Fri Apr 11, 2025 11:32 am

Re: Lossless Crop Speed (inexplicably slow)

Post by stew11 »

From my experience, it doesn't matter what file it is, but I attach one anyway. And demonstrations how it looks.
You do not have the required permissions to view the files attached to this post.
meteorquake
Posts: 115
Joined: Wed Sep 13, 2023 9:37 am

Re: Lossless Crop Speed (inexplicably slow)

Post by meteorquake »

As per stew11, any jpg seems to suffer from slow lossless crop.
User avatar
xnview
Author of XnView
Posts: 47034
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Lossless Crop Speed (inexplicably slow)

Post by xnview »

:bugconfirmed: Thanks to your detailed description I can reproduce the problem.
Pierre.
Post Reply