recursive

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

Moderators: XnTriq, xnview

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

recursive

Post by mfeske » Mon May 25, 2009 12:39 pm

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: 32459
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: recursive

Post by xnview » Tue May 26, 2009 6:32 am

no :?
Pierre.

mfeske
Posts: 40
Joined: Fri May 15, 2009 10:00 am

Re: recursive

Post by mfeske » Tue May 26, 2009 11:43 am

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

but it´s a nice tool ;-)

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

Re: recursive

Post by xnview » Tue May 26, 2009 2:10 pm

i don't understand the problem for target folder?
Pierre.

mfeske
Posts: 40
Joined: Fri May 15, 2009 10:00 am

Re: recursive

Post by mfeske » Tue May 26, 2009 4:47 pm

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: 32459
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: recursive

Post by xnview » Wed May 27, 2009 9:08 am

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: 40
Joined: Fri May 15, 2009 10:00 am

Re: recursive

Post by mfeske » Thu May 28, 2009 6:46 am

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 » Tue Jun 02, 2009 10:47 am

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: 40
Joined: Fri May 15, 2009 10:00 am

Re: recursive

Post by mfeske » Tue Jun 02, 2009 1:37 pm

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: 40
Joined: Fri May 15, 2009 10:00 am

Re: recursive

Post by mfeske » Tue Jun 16, 2009 12:56 pm

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