Export bach for NConvert: wrong value of -o option

Bugs found in XnView Classic. Please report only one bug per topic!

Moderators: helmut, XnTriq, xnview

Post Reply
Martin Trcka

Export bach for NConvert: wrong value of -o option

Post by Martin Trcka »

If I try to export batch for NConvert the resulting command has wrong value of -o parameter (output filename). NConvert does not do desired operation because of "Error: Can't create file".

Step to reproduce problem:
* Run XnView, select several images
* Tools -> Batch convert
* select some output directory, e. g. "C:\temp"
* Hit "Export batch for NConvert..." button and choose some filename, e. g. "convert.bat"

When you tries to run convert.bat, you get one error for each file in selection:

Error: Can't create file (C:\temp)

The problem is that convert.bat contains this command:
nconvert [some_options] -o C:\temp [list_of_files]

According to NConvert help, option -o needs filename, not just directory name. Therefore, the -o part of command should look like

-o C:\temp\%%.jpg

(the extension depends of selected output format)
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Export bach for NConvert: wrong value of -o option

Post by xnview »

Martin Trcka wrote:If I try to export batch for NConvert the resulting command has wrong value of -o parameter (output filename). NConvert does not do desired operation because of "Error: Can't create file".

Step to reproduce problem:
* Run XnView, select several images
* Tools -> Batch convert
* select some output directory, e. g. "C:\temp"
* Hit "Export batch for NConvert..." button and choose some filename, e. g. "convert.bat"

When you tries to run convert.bat, you get one error for each file in selection:

Error: Can't create file (C:\temp)

The problem is that convert.bat contains this command:
nconvert [some_options] -o C:\temp [list_of_files]

According to NConvert help, option -o needs filename, not just directory name. Therefore, the -o part of command should look like

-o C:\temp\%%.jpg

(the extension depends of selected output format)
Ok, i'll change it
Pierre.
Post Reply