Writing converted file to a subdir ?

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

Moderators: XnTriq, helmut, xnview

Ludo

Writing converted file to a subdir ?

Post by Ludo »

Hello,

Is there a way to write te converted image into a subdirectory or into another directory (Xnview allows that) ?

Thanks
Ps: i'm using nconvert v3.88
User avatar
xnview
Author of XnView
Posts: 44883
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Writing converted file to a subdir ?

Post by xnview »

Ludo wrote:Is there a way to write te converted image into a subdirectory or into another directory (Xnview allows that) ?
You can use nconvert -o folder/%.png -out png *.jpg
% is replaced by orignal filename
Pierre.
User avatar
helmut
Posts: 8705
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: Writing converted file to a subdir ?

Post by helmut »

Ludo wrote:...Is there a way to write te converted image into a subdirectory or into another directory?...
As output file you can specify a pure filename (output.jpg) or a filename with path (C:\temp\output.jpg) as parameter.

E.g. for converting a TIFF image to JPG format and save it in C:\temp you would use:

nconvert -o C:\temp\output.jpg -out jpeg input.tif