If you change the picture dimensions in any way, such as rotating, cropping, it still allows you to do a lossless crop, which makes a permanent mess of the file typically requiring restoring from a backup. This can happen under certain circumstances due to user negligence, especially during repetitious but slightly varying tasks.
Suggestion: After a dimensional change, a lossless crop should be disabled or blocked for the picture until it is reloaded (or undone back to start, or a new picture loaded). (I suspect if the lossless "block" is done by recording the undo counter for the image, undoing back to a dimensionally unchanged state could also be handled as an extra, although that is somewhat niche, I think simple is sufficient.)
NB it shouldn't block a lossless rotation, as that won't wreck the underlying image. I often test rotate in XNView my plant pictures, and if I like it perform the appropriate lossless version without any reloading.
David
Lossless-Cropping of an altered image
Moderators: xnview, Dreamer
-
user0
- XnThusiast
- Posts: 3060
- Joined: Sat May 09, 2015 9:37 am
Re: Lossless-Cropping of an altered image
it is not required, as Save popup is already in placemeteorquake wrote: Sun Jun 21, 2026 1:53 pm Suggestion: After a dimensional change, a lossless crop should be disabled or blocked for the picture until it is reloaded (or undone back to start, or a new picture loaded). (I suspect if the lossless "block" is done by recording the undo counter for the image, undoing back to a dimensionally unchanged state could also be handled as an extra, although that is somewhat niche, I think simple is sufficient.)
it appears when you try to perform lossless operation on an unsaved image
however there is a bug - lossless crop does not work correctly after Save Yes/No
-
meteorquake
- Posts: 153
- Joined: Wed Sep 13, 2023 9:37 am
Re: Lossless-Cropping of an altered image
I don't get any popup when losslessly acting on a changed image...
-
user0
- XnThusiast
- Posts: 3060
- Joined: Sat May 09, 2015 9:37 am
Re: Lossless-Cropping of an altered image
Reset all confirm prompts in Settings>General
-
meteorquake
- Posts: 153
- Joined: Wed Sep 13, 2023 9:37 am
Re: Lossless-Cropping of an altered image
I've just tried that now. So, that gives a popup for all lossless crops, which I don't want, since I do a lot of lossless cropping.
The topic raised regards lossless crops when the image has been altered, which is an unexpected mistaken action that wrecks the underlying image and isn't apparent given what's on display...
The topic raised regards lossless crops when the image has been altered, which is an unexpected mistaken action that wrecks the underlying image and isn't apparent given what's on display...