How to enter the specified directory?

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

Moderators: XnTriq, helmut, xnview

Post Reply
starix
Posts: 2
Joined: Mon Nov 14, 2016 3:11 am

How to enter the specified directory?

Post by starix »

Hi friends,

I need to be a picture output to the corresponding directory, that is, Output folder, but it seems that no this parameter?
cday
XnThusiast
Posts: 3973
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: How to enter the specified directory?

Post by cday »

starix wrote:Hi friends,

I need to be a picture output to the corresponding directory, that is, Output folder, but it seems that no this parameter?
From the help file:

Code: Select all

-o filename       : Output filename Options section:

              Use # to specify position of numeric enumerator
              Use % to specify source filename
              Use $ to specify full source pathname
              Use $$ to specify source folder name
              Use $EXIF:DateModified[date format] to specify EXIF date modified
              Use $EXIF:DateTaken[date format] to specify EXIF date taken
	      Date format: Please check documentation of strftime
There should be examples of the use the above parameters in NConvert forum posts.
starix
Posts: 2
Joined: Mon Nov 14, 2016 3:11 am

Re: How to enter the specified directory?

Post by starix »

cday wrote:
starix wrote:Hi friends,

I need to be a picture output to the corresponding directory, that is, Output folder, but it seems that no this parameter?
From the help file:

Code: Select all

-o filename       : Output filename Options section:

              Use # to specify position of numeric enumerator
              Use % to specify source filename
              Use $ to specify full source pathname
              Use $$ to specify source folder name
              Use $EXIF:DateModified[date format] to specify EXIF date modified
              Use $EXIF:DateTaken[date format] to specify EXIF date taken
	      Date format: Please check documentation of strftime
There should be examples of the use the above parameters in NConvert forum posts.

Thank you very much for your answer.
cday
XnThusiast
Posts: 3973
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: How to enter the specified directory?

Post by cday »

Here is a simple example that rotates images in the Input folder and places the output files in the Output folder:

Code: Select all

nconvert -rotate 90 -out jpeg -q 80 -o "C:\X\Output\%%.jpg" C:\X\Input\*.jpg
The '%' in the code is doubled as I ran the code in a Windows batch file.

Note also that quotes can't be used together with wildcards around the input term, but from memory input filenames may have spaces but not the input file paths.
Post Reply