Lossless crop is disabled but shouldn't

*** Please report new bugs here! ***

Moderators: helmut, XnTriq, xnview, Dreamer

Post Reply
oayz
Posts: 10
Joined: Fri Mar 06, 2009 12:19 am

Lossless crop is disabled but shouldn't

Post 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
User avatar
xnview
Author of XnView
Posts: 46603
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Lossless crop is disabled but shouldn't

Post by xnview »

Strange, i can't reproduce...
Pierre.
oayz
Posts: 10
Joined: Fri Mar 06, 2009 12:19 am

Re: Lossless crop is disabled but shouldn't

Post 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
User avatar
xnview
Author of XnView
Posts: 46603
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Lossless crop is disabled but shouldn't

Post by xnview »

I've tried like your description, but lossless crop is enabled :|
Pierre.
oayz
Posts: 10
Joined: Fri Mar 06, 2009 12:19 am

Re: Lossless crop is disabled but shouldn't

Post by oayz »

Oh, well, thanks for trying, may be computer/os dependent.
Post Reply