Recurse subdirectories

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

Moderators: XnTriq, xnview

Post Reply
User avatar
helmut
Posts: 8172
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Recurse subdirectories

Post by helmut » Sun Dec 21, 2003 10:28 am

Is there a command line option in Nconvert that allows recursing subdirectories?

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

Re: Recurse subdirectories

Post by xnview » Sat Jan 10, 2004 1:29 pm

helmut wrote:Is there a command line option in Nconvert that allows recursing subdirectories?
No, but good idea :o

User avatar
helmut
Posts: 8172
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Post by helmut » Sat Jan 10, 2004 1:36 pm

I'm surprised that no one has asked for an option that allows recursing subdirs, before. In combination with wildcards, this would be very useful, I think. Other opinions?

User avatar
helmut
Posts: 8172
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: Recurse subdirectories

Post by helmut » Wed Jan 05, 2005 8:35 pm

helmut wrote:Is there a command line option in Nconvert that allows recursing subdirectories?
Is this possible with the current NConvert version? I still don't know how to do this.

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

Re: Recurse subdirectories

Post by xnview » Sun Jan 09, 2005 7:50 pm

helmut wrote:
helmut wrote:Is there a command line option in Nconvert that allows recursing subdirectories?
Is this possible with the current NConvert version? I still don't know how to do this.
Sorry not.
So you want to be able to do that:
nconvert -R -out bmp *.jpg to convert all jpg files in this folder and all subfolders?
Pierre.

ingo
Posts: 2
Joined: Mon Jan 10, 2005 1:41 pm

Post by ingo » Mon Jan 10, 2005 1:48 pm

In a batch file under Windows XP I use

Code: Select all

for /R %%I in (*.*) do c:\programme\xnview\nconvert -npcd 2 -q 70 -size 256x256+0 -opthuff -rmeta -ctype grey -corder inter -out jpeg -o "J:\bild\%%~nI.jpg" -ratio -rtype lanczos -resize 800 800 "%%I" 
to convert all files including subdirectories

User avatar
helmut
Posts: 8172
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Post by helmut » Mon Jan 10, 2005 10:23 pm

ingo wrote:In a batch file under Windows XP I use

for /R %%I in (*.*) do c:\programme\xnview\nconvert -npcd 2 -q 70 -size 256x256+0 -opthuff -rmeta -ctype grey -corder inter -out jpeg -o "J:\bild\%%~nI.jpg" -ratio -rtype lanczos -resize 800 800 "%%I"

to convert all files including subdirectories
Thank you for the batch sample. This is what I've been looking for. :-)

User avatar
helmut
Posts: 8172
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: Recurse subdirectories

Post by helmut » Mon Jan 10, 2005 10:28 pm

xnview wrote:So you want to be able to do that:
nconvert -R -out bmp *.jpg to convert all jpg files in this folder and all subfolders?
There's Ingo's batch sample, now, which might do what I want (still have to check).

I think that a recurse subdirectry option in NConvert might be useful and powerful. But I'm not using NConvert a lot and this is just a guess.

tom*de
Posts: 40
Joined: Wed Mar 22, 2006 1:08 pm

Re: Recurse subdirectories

Post by tom*de » Wed Jan 25, 2012 1:28 pm

Hello, I will praise nconvert, first. Also version 6.00, thanks for this tool.
for /R %%I in (*.*) do c:\programme\xnview\nconvert -npcd 2 -q 70 -size 256x256+0 -opthuff -rmeta -ctype grey -corder inter -out jpeg -o "J:\bild\%%~nI.jpg" -ratio -rtype lanczos -resize 800 800 "%%I"
The script helps me a lot, but all files from all dirs will be converted into the same target dir. I would like to have the same directory-structure at the destination directory. Any idea?
Thanks Tom

Post Reply