Use original file extension when saving it after modification

Older bugs which are supposed to be fixed in 0.84. *** Please try to reproduce your bug and confirm the bug fix. ***

Moderators: helmut, XnTriq, xnview, Dreamer

AntonK
Posts: 4
Joined: Thu Oct 08, 2020 8:33 am

Use original file extension when saving it after modification

Post by AntonK »

XnViewMP can remember the file type (image format), which was used last used when saving an image (nice feature in any case).
However if the user works with different image formats (like .jpg and .png), this feature makes you do extra clicks.

Consider the scenarion:
1. Open .PNG image.
2. Modify it and save with different name (select same format).
3. Open .JPG imge (or any other format different from the previous one).
4. Modify it and try to save with different name => The app autoselects .PNG format (why?!)

I think, at the 4-th step the app should use the original file extension (.JPG).

In general the app should re-use the original extension, when it is known and supported.
If such behavior isn't acceptable for everyone, let it be an option in the settings.

Version: 0.97.0 (32-bit)
OS: Windows 7 64-bit SP1

Related suggestion - Save Dialog: Select type by extension (looks like an issue report).
User avatar
xnview
Author of XnView
Posts: 37753
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Use original file extension when saving it after modification

Post by xnview »

'Save as' keep lastest format used
Pierre.
AntonK
Posts: 4
Joined: Thu Oct 08, 2020 8:33 am

Re: Use original file extension when saving it after modification

Post by AntonK »

Yes, I understand this.
For my use cases such behavior is hardly usable.
I don't see a reason why I would want to save edited (cropped/resized/etc.) JPEG-photo as PNG, or edited PNG-screenshot as JPEG: in most cases I save in the same (original) format.
My suggestion is about a configurable option which could tune this behavior. Let it be off/disabled by default so the current behavior is kept as is.
User avatar
winnylinny
Posts: 80
Joined: Fri Apr 17, 2020 5:35 pm

Re: Use original file extension when saving it after modification

Post by winnylinny »

I have to agree with AntonK. By default, "Save As" should use the same image format as the file which is being edited.

Are you editing a PNG image? It should default to PNG as the format when saving.

Are you editing a JPG image? It should default to JPG as the format when saving.

Are you editing a BMP image? It should default to BMP as the format when saving.

Are you editing a GIF image? It should default to GIF as the format when saving.

So what if the last time you saved an image it was PNG? The most recent image you are editing is a JPG, and so when you go to "Save As", it should assume you want to save it as... JPG. Why would it make any sense to save a JPG as a PNG simply because the last time you edited an image it "just so happened" to be a PNG file you were working with yesterday?
User avatar
xnview
Author of XnView
Posts: 37753
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Use original file extension when saving it after modification

Post by xnview »

See issue for current status and some details.
Pierre.
User avatar
xnview
Author of XnView
Posts: 37753
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Use original file extension when saving it after modification

Post by xnview »

This problem is supposed to be fixed in XnView MP 0.98.0. Please check and confirm the bug fix here.
Pierre.