File extension

XnConvert Multi Platform - Windows, MacOSX, Linux
funben
Posts: 7
Joined: Thu Oct 19, 2017 8:13 am

File extension

Postby funben » Thu Oct 19, 2017 8:20 am

Hi,

In XnConvert 1.75, when converting to another format, the extension is kept as the original. For instance, I have a bunch of JPG files that I want in PNG 256 colors.
the output file extension is kept as JPG.
by using {Filename}.png in the "output filename" field result in IMG2367.png.jpg
using {Filename With Ext} result in IMG2367.jpg.jpg

The best way I found was to convert the file, and then using another software to rename it.

Thanks for the very good software :D
Merci pierre

User avatar
xnview
Author of XnView
Posts: 28275
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: File extension

Postby xnview » Thu Oct 19, 2017 8:23 am

Could you post a screenshot of output tab?
Pierre.

funben
Posts: 7
Joined: Thu Oct 19, 2017 8:13 am

Re: File extension

Postby funben » Thu Oct 19, 2017 8:46 am

As requested, the output capture is attached


<?xml version="1.0" encoding="UTF-8"?><XnView_script version="1.0" name="ConvertParam">
<Change_color_depth method="1" dither="5" ncompo="256" alpha="255"/>
<Output folder="" filename="{Filename}.png" case="0" startIndex="1" format="PNG">
<Options overwrite="0" orgDate="false" keepMeta="false" keepICC="false" keepFolder="false" keepParentFolder="false" delOrg="false" multipage="false" allPages="false" openExplorer="false" openBrowser="false" clearItems="false"/>
<PNG level="9" interlaced="false" filter="0"/>
</Output>
</XnView_script>
Attachments
XnCaptureOutput.jpg

funben
Posts: 7
Joined: Thu Oct 19, 2017 8:13 am

Re: File extension

Postby funben » Thu Oct 19, 2017 9:08 am

I tried every combination, and didn't find the trick, I just tried to find an former version, but I didn't find it.

To me it is not a misuse ... it is a bug

User avatar
xnview
Author of XnView
Posts: 28275
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: File extension

Postby xnview » Thu Oct 19, 2017 12:24 pm

i can't reproduce, could you post the screen 'Status'? And if you use '{Filename}'?
Pierre.

funben
Posts: 7
Joined: Thu Oct 19, 2017 8:13 am

Re: File extension

Postby funben » Thu Oct 19, 2017 1:01 pm

Here are the output and status screenshot. If you want you can access my computer. I'll send you the details in PM
Attachments
XnConvert-Status.jpg
XnConvert-Output.jpg

funben
Posts: 7
Joined: Thu Oct 19, 2017 8:13 am

Re: File extension

Postby funben » Thu Oct 19, 2017 1:10 pm

I just tried with 1.70 version, and this is the same.
I used {Filename With Ext}

Here is the status screenshot
Attachments
XnConvert-Status3.jpg

funben
Posts: 7
Joined: Thu Oct 19, 2017 8:13 am

Re: File extension

Postby funben » Thu Oct 19, 2017 1:20 pm

I just did a new test ... and I know what i could be coming from.
The files I use is a PNG file that has been renamed as JPG by another software.

I tried with a proper JPG file and extension has been changed as PNG as it should be.

It is not fully a bug, but I cannot correct with this XnConvert, what the other software did wrong

User avatar
xnview
Author of XnView
Posts: 28275
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: File extension

Postby xnview » Thu Oct 19, 2017 7:07 pm

funben wrote:I just did a new test ... and I know what i could be coming from.
The files I use is a PNG file that has been renamed as JPG by another software.

I tried with a proper JPG file and extension has been changed as PNG as it should be.

It is not fully a bug, but I cannot correct with this XnConvert, what the other software did wrong

Right, in this case XnConvert use the good extension, so not really a bug...
Pierre.

funben
Posts: 7
Joined: Thu Oct 19, 2017 8:13 am

Re: File extension

Postby funben » Thu Oct 19, 2017 9:56 pm

It is not really a bug but still the output file extension is wrong. It would be nice if you could figure something out to have a clean file after the convert process.

Spriggana
Posts: 13
Joined: Sun Feb 12, 2012 12:29 am

Re: File extension

Postby Spriggana » Wed Nov 15, 2017 4:49 pm

I just came to address the same issue, and I'd say it is a minor bug.
If I feed xnconvert a jpg-with-png-extension file and ask for it to be converted to png I get a proper png file with png extension.
But if I ask for a jpg file I get a proper jpg file with png extension which is confusing…
Why would xnconvert leave the incorrect extension in place if actual source file format matches the required output one instead of simply changing the extension to match the output format?


Return to “XnConvert”

Who is online

Users browsing this forum: No registered users and 3 guests