-o vs -out

Discussions on NConvert - the command line tool for image conversion and manipulation

Moderators: XnTriq, xnview

Poto
Posts: 3
Joined: Wed Sep 01, 2021 3:40 pm

-o vs -out

Post by Poto »

I have a question.

Code: Select all

nconvert -i sample.gif -o tif
-o was tested and not recognized properly, only -out can convert the format properly

Code: Select all

C:\Users\Poto>"D:\Documents\Quicker\NConvertByPoto\nconvert.exe" -o png "D:\Pictures\favicon (3).ico"
** NCONVERT v7.80 (c) 1991-2021 Pierre-E Gougelet (Apr 27 2021/08:27:27) **
        Version for Windows Xp/Vista/7 x64  (All rights reserved)
** This is freeware software (for non-commercial use)

Conversion of D:\Pictures\favicon (3).ico into png_1.ico OK
With this command above, the output is wrong.

Code: Select all

C:\Users\Poto>"D:\Documents\Quicker\NConvertByPoto\nconvert.exe" -out png "D:\Pictures\favicon (3).ico"
** NCONVERT v7.80 (c) 1991-2021 Pierre-E Gougelet (Apr 27 2021/08:27:27) **
        Version for Windows Xp/Vista/7 x64  (All rights reserved)
** This is freeware software (for non-commercial use)

Conversion of D:\Pictures\favicon (3).ico into D:\Pictures\favicon (3).png OK
When I change -o to -out, the normal conversion format

According to the documentation, -o is the file name and -out is the output format name
cday
XnThusiast
Posts: 3064
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: How to use NConvert

Post by cday »

In NConvert the source file (or files) must be the right-most term in the command line.

-out sets the output file format (may not be required if the same format as the source file).

-o sets the output file name (may not be required if same as source file name).

For output file compression options according to the output file format see the help file.


Full details of all available options are in the NConvert help file.