recursive

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

Moderators: helmut, XnTriq, xnview

Post Reply
mfeske
Posts: 42
Joined: Fri May 15, 2009 10:00 am

recursive

Post by mfeske »

Hello,
is therie a switch in nconvert to works rekursive and than make the same folder in the tarket folder?
example:
pictures from c:\input an c:\input\01 to c:\output an (make self) c:\output\o1?

Greetings
Michael
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: recursive

Post by xnview »

no :?
Pierre.
mfeske
Posts: 42
Joined: Fri May 15, 2009 10:00 am

Re: recursive

Post by mfeske »

both no :-(
or only the directory problem no?

but it´s a nice tool ;-)
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: recursive

Post by xnview »

i don't understand the problem for target folder?
Pierre.
mfeske
Posts: 42
Joined: Fri May 15, 2009 10:00 am

Re: recursive

Post by mfeske »

Hello Pierre,
my problem is, I will work with the following files as source, for example:
c:\eingang\test.jpg and c:\eingang\test\test.jpg
if the target folder is the same one is overwriting the other.
if it possible to write the path in the target folder theire isn´t a problem.
for example
c:\ausgang\test.jpg and c:\ausgang\test\test.jpg

greetings
micha
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: recursive

Post by xnview »

mfeske wrote: if it possible to write the path in the target folder theire isn´t a problem.
for example
c:\ausgang\test.jpg and c:\ausgang\test\test.jpg
Oh ok, like 'keep folder structure' in XnView? So no option...
Pierre.
mfeske
Posts: 42
Joined: Fri May 15, 2009 10:00 am

Re: recursive

Post by mfeske »

then of course it is a pity :-(

Gruß
Micha
hjklzxcva
Posts: 2
Joined: Fri May 15, 2009 1:26 pm

Re: recursive

Post by hjklzxcva »

hi

You can follow this sample
---------------------------------------------------
nconvert -jpegtrans exif -out jpeg *.jpg
FOR /D /R %%a IN (*) DO nconvert -jpegtrans exif -out jpeg %%~sa\*.jpg
---------------------------------------------------
It's like recursive function
mfeske
Posts: 42
Joined: Fri May 15, 2009 10:00 am

Re: recursive

Post by mfeske »

hjklzxcva wrote:hi

You can follow this sample
---------------------------------------------------
nconvert -jpegtrans exif -out jpeg *.jpg
FOR /D /R %%a IN (*) DO nconvert -jpegtrans exif -out jpeg %%~sa\*.jpg
---------------------------------------------------
It's like recursive function
Hello hjklzxcva,
thanks for your answer, can you help me and explain, how does it works?
Greetings
Michael
mfeske
Posts: 42
Joined: Fri May 15, 2009 10:00 am

Re: recursive

Post by mfeske »

Hello I have make some changes in the batch for my special thinks but it works not :-( only the file in the first folder is convertet and copying to the correct position :-(

Code: Select all

h:\vetmed_converter\script\exe\nconvert -npcd 2 -size 256x256+0 -ctype grey -corder inter -out jpeg -o H:\04_target_m\ch_%%_m.jpg -dpi 300 -ratio -rtype lanczos -rflag orient -resize 500 0 -wmfile "h:\vetmed_converter\logo\in_use\picture\ch_vetsuisse_m.tif" -wmpos -10 -10 -wmflag bottom-right -wmopacity 70 h:\ch\*.jpg
FOR /D /R %%a IN (*) DO h:\vetmed_converter\script\exe\nconvert -npcd 2 -size 256x256+0 -ctype grey -corder inter -out jpeg -o %%~sa\ch_%%_m.jpg -dpi 300 -ratio -rtype lanczos -rflag orient -resize 500 0 -wmfile "h:\vetmed_converter\logo\in_use\picture\ch_vetsuisse_m.tif" -wmpos -10 -10 -wmflag bottom-right -wmopacity 70 h:\ch\*.jpg
pause
exit
Can you help me?

Greetings
Micha
Post Reply