Page 1 of 1

Lossless crop is disabled but shouldn't

Posted: Sun Jun 29, 2025 8:28 pm
by oayz
How to reproduce:

Make selection, crop normally (Shift-X), undo (Ctrl-Z) - selection is back, try to crop lossless - menu item is greyed out (disabled). Move selection back and forth - lossless crop is now enabled.

OK, it's not easy to reproduce - depends on the size of the selection. Attached is the image and screenshot showing the problem and selection which always problematic (low right corner of the screenshot)

If I understand logic correctly - lossless crop should always be enabled if selection is present. Not sure how actual selection size/position is computed - rounded down, up or just rounded to compression block size.

Sorry, both files are > attachment limit (2Mb), had to share it on Google drive:

https://drive.google.com/file/d/1jOQPpZ ... drive_link

Let me know if I can be at any help to reproduce or provide details

Re: Lossless crop is disabled but shouldn't

Posted: Tue Jul 01, 2025 7:09 am
by xnview
Strange, i can't reproduce...

Re: Lossless crop is disabled but shouldn't

Posted: Wed Jul 16, 2025 6:29 am
by oayz
Hi Pierre, thanks for looking into this.

I may know why you were no able to reproduce - it only happens when image is zoomed to "full size" (press "/").

With selection size is as on provided with photo screenshot, problem is persistent. Actually position of the selection doesn't seem to matter

So this is how to reproduce:

Windows 10, 64-bit
XnView MP 1.9.2, 64-bit

1. Load "P1000613.JPG" photo (attach in prev comment)
2. Make a selection approximately 3515x2347
3. Zoom-in to the corner of selection to have fine control, adjust selection size to exactly 3515x2347
4. Zoom image to full size (press "/")
5. Ctrl-X to crop
6. Ctrl-Z to undo and restore selection
7. Check lossless crop - it should be greyed out

You can move selection and repeat 5-7

Just check size of XnView window doesn't matter, doesn't have to be full screen

P.S. Somehow don't get notifications of your replies, thus long delay

Re: Lossless crop is disabled but shouldn't

Posted: Wed Jul 30, 2025 3:19 pm
by xnview
I've tried like your description, but lossless crop is enabled :|

Re: Lossless crop is disabled but shouldn't

Posted: Thu Jul 31, 2025 5:29 am
by oayz
Oh, well, thanks for trying, may be computer/os dependent.