How to enter the specified directory?

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

Moderators: helmut, XnTriq, xnview

How to enter the specified directory?

Postby starix » Mon Nov 14, 2016 3:14 am

Hi friends,

I need to be a picture output to the corresponding directory, that is, Output folder, but it seems that no this parameter?
starix
 
Posts: 2
Joined: Mon Nov 14, 2016 3:11 am

Re: How to enter the specified directory?

Postby cday » Mon Nov 14, 2016 7:15 am

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.
cday
XnThusiast
 
Posts: 1336
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: How to enter the specified directory?

Postby starix » Mon Nov 14, 2016 7:48 am

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.
starix
 
Posts: 2
Joined: Mon Nov 14, 2016 3:11 am

Re: How to enter the specified directory?

Postby cday » Mon Nov 14, 2016 7:54 am

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.
cday
XnThusiast
 
Posts: 1336
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.


Return to NConvert

Who is online

Users browsing this forum: No registered users and 1 guest

cron