
Bug: "Keep original file when encoded result is larger" may delete your images permanently
Moderators: helmut, XnTriq, xnview, Dreamer
Re: Bug: "Keep original file when encoded result is larger" may delete your images permanently
Also it looks like the feature does not work if you have filters enabled even if its just some very simple resize filter? Too bad. 

Re: Bug: "Keep original file when encoded result is larger" may delete your images permanently
Just tried it and getting the same resultsLitr wrote: Wed Jan 10, 2024 10:39 pm I think it has to do something if there is an image with attached color profile and "preserve color profile" feature is ENABLED. So maybe the "Keep original file when encoded result is larger" just does not work if "preserve color profile" in ENABLED?...
preserve extension
preserve extension
preserve extension
preserve extension
Sample file on the first page if you like to test it.
Re: Bug: "Keep original file when encoded result is larger" may delete your images permanently
yes currently, i disable this option when there is actions. If you add actions, it's strange to keep original file...Litr wrote: Wed Jan 10, 2024 10:45 pm Also it looks like the feature does not work if you have filters enabled even if its just some very simple resize filter? Too bad.![]()
Pierre.
Re: Bug: "Keep original file when encoded result is larger" may delete your images permanently
Please send me test files?Litr wrote: Wed Jan 10, 2024 10:39 pm So i tested it a bit more and it looks like the new feature SOMETIMES does not work if the extension is the same?
i.e. If i have JPGs then it will preserve new bigger files in one case... and wipe them out in other cases.![]()
Pierre.
Re: Bug: "Keep original file when encoded result is larger" may delete your images permanently
I agree if you use complex filters, but if you use resize then sometimes end results may be (way) bigger due to differently compressed/processed pixels despite smaller dimension. So it would be better to save original when that happens.xnview wrote: Thu Jan 11, 2024 7:47 amyes currently, i disable this option when there is actions. If you add actions, it's strange to keep original file...Litr wrote: Wed Jan 10, 2024 10:45 pm Also it looks like the feature does not work if you have filters enabled even if its just some very simple resize filter? Too bad.![]()
Perhaps you could add another checkbox like "Keep original file when encoded result is larger > Allow to use with active filters" and allow to save this checkbox state in the profile.

Look in the attachments.xnview wrote: Thu Jan 11, 2024 7:50 amPlease send me test files?Litr wrote: Wed Jan 10, 2024 10:39 pm So i tested it a bit more and it looks like the new feature SOMETIMES does not work if the extension is the same?
i.e. If i have JPGs then it will preserve new bigger files in one case... and wipe them out in other cases.![]()
1) Conversion to JPEG format (see screenshot)
2) "Keep original file when encoded result is larger" is ON
3) Both of these files with color profiles so my yesterdays assumption that all color profiles are affected was incorrect, or maybe partially incorrect
4) Results:
color_profile_1.jpg will get BIGGER after conversion and will be saved
color_profile_2.jpg will get SMALLER after conversion and will be saved
Funny thing - if you forcefully convert these file once in XnView then they will both go down in size on the NEXT conversion.

Re: Bug: "Keep original file when encoded result is larger" may delete your images permanently
Please contact me by PM for a test version...
Pierre.
Re: Bug: "Keep original file when encoded result is larger" may delete your images permanently

Pierre.
Re: Bug: "Keep original file when encoded result is larger" may delete your images permanently
This problem is supposed to be fixed in XnView MP 1.6.5. Please check and confirm the bug fix here.
Pierre.
Re: Bug: "Keep original file when encoded result is larger" may delete your images permanently
Everything is good on my side. Thank you!xnview wrote: Thu Feb 22, 2024 2:39 pm This problem is supposed to be fixed in XnView MP 1.6.5. Please check and confirm the bug fix here.

Re: Bug: "Keep original file when encoded result is larger" may delete your images permanently
Would be nice if you update standalone XnConvert too...