Page 1 of 1

renaming output files

Posted: Mon Jan 10, 2005 1:56 pm
by ingo
if I want to rename the output files with the # placeholder it only generates one image with the number 0. I use this in a batch file like

c:\programme\xnview\nconvert -npcd 2 -q 70 -size 256x256+0 -opthuff -rmeta -ctype grey -corder inter -out jpeg -o "##.jpg" -ratio -rtype lanczos -resize 800 800 "*.jpg"

and expect image names like
01.jpg
02.jpg...

nConvert outputfiles renaming with numeric continuation '#'

Posted: Mon Feb 07, 2005 3:44 pm
by wanid00b
hy Ingo !
(and XnView admins also !)

:idea: Try to add the -n option to specify the begin, the end and the step to rename your images, like this :
:arrow: for this example your new images will be (re)numered from 7 to 55 by step of 1 unit - also 49 files
code wrote:nconvert -npcd 2 -q 70 -size 256x256+0 -opthuff -rmeta -ctype grey -corder inter -out jpeg -n 7 55 1 -ratio -rtype lanczos -resize 800 800 -o "newpath\new_###.jpg" "oldpath\old##.JPG"
("##" indicates where are the numeric references)
:arrow: If old images are not numered, you can try to substitute "oldpath\old##.JPG" with "oldpath\*.JPG"
:arrow: To keep the same directory, don't specify the path

:!: Question for admins : with wildcar ("*") in old file names (like "oldpath\*.JPG[b/]") nConvert converts twice each file (cf. MSDos echo), is it a :bug: bug of the program or just a bug of the user ?
:!: Other note for admins : :bugconfirmed: real bug ; the usage of some characters (in the destination file name) is not appreciated by nConvert (but XnView doesn't bug) : for example, the char "¯" (decimal code 175) is converted into "»" (decimal code 187).
It's annoying me because I use several characters ("¯" included) to code for the pixel size of my images
...


XnView... what a kind of pretty toolbox !

Re: nConvert outputfiles renaming with numeric continuation

Posted: Mon Feb 07, 2005 5:13 pm
by wanid00b
wanid00b wrote: you can try to substitute "oldpath\old##.JPG" with "oldpath\*.JPG"
:mrgreen: in fact, using wildcar doesn't work for more than... 1 file ! : it converts each source file ("*") into each destination files ("#")... the conversion of a source file rewrite (erase) the files created (destination files) with the precedent source file (same files names) !!

8) So it will be a good idea to add full renaming features to nConvert, with :
- regexp support to filter source files (including capturing brackets) and to rename files (including captured brackets)
- any input files list support (including numered files and Regular Expressions)
- any output files list support (including new numeric continuation and Regular Expressions)

Re: renaming output files

Posted: Tue Feb 08, 2005 9:43 am
by xnview
ingo wrote:if I want to rename the output files with the # placeholder it only generates one image with the number 0. I use this in a batch file like

c:\programme\xnview\nconvert -npcd 2 -q 70 -size 256x256+0 -opthuff -rmeta -ctype grey -corder inter -out jpeg -o "##.jpg" -ratio -rtype lanczos -resize 800 800 "*.jpg"

and expect image names like
01.jpg
02.jpg...
Ok, i'll add this feature

Re: nConvert outputfiles renaming with numeric continuation

Posted: Tue Feb 08, 2005 9:43 am
by xnview
wanid00b wrote::!: Question for admins : with wildcar ("*") in old file names (like "oldpath\*.JPG[b/]") nConvert converts twice each file (cf. MSDos echo), is it a :bug: bug of the program or just a bug of the user ?
:!: Other note for admins : :bugconfirmed: real bug ; the usage of some characters (in the destination file name) is not appreciated by nConvert (but XnView doesn't bug) : for example, the char "¯" (decimal code 175) is converted into "»" (decimal code 187).
It's annoying me because I use several characters ("¯" included) to code for the pixel size of my images
...

Ok, i'll check

Re: nConvert outputfiles renaming with numeric continuation

Posted: Fri Feb 18, 2005 4:57 pm
by wanid00b
ok, thanks !

the support of special numeric continuation cars ("#") in nConvert (with first number and step to rename destination file) like the -n option select the source file, and like the XnView renaming function do.

Best regards,
especialy to the new versions of XnView :o)

Re: renaming output files

Posted: Sat Oct 03, 2009 2:07 pm
by nh2user
any updates on that ?