Page 1 of 1

xnview, nconvert batch processing

Posted: Fri Jul 18, 2008 10:32 am
by xnConverter
Hello,

I tried using xnview to produce a batch file but it places all of the file names on the command line for nconvert to process. I have over 14 thousand files to process. Is there anyway I can feed a list of files to nconvert and just run the program and come back later when it finishes? xnview slows to a crawl after the first 1k.

thank you

Re: xnview, nconvert batch processing

Posted: Fri Jul 18, 2008 11:44 am
by xnview
You can use filelist with nconvert

Posted: Fri Jul 18, 2008 11:48 am
by xnConverter
Could you provide an example of the file list parameter using nconvert? I really like this tool, it seems that it will work for me if I could just get past this issue.

Posted: Fri Jul 18, 2008 3:32 pm
by xnview
xnConverter wrote:Could you provide an example of the file list parameter using nconvert? I really like this tool, it seems that it will work for me if I could just get past this issue.
You can create a text file with the list of all filenames, and use -L filelist.txt

memory reference error

Posted: Fri Jul 18, 2008 5:40 pm
by xnConverter
I am getting a memory reference error from windows 2003 server. At instruction "0x00408d48" referenced memory at "0x00000000". The memory could not be "written".

Here is my command line:

nconvert -npcd 2 -size 256x256+0 -ctype grey -corder inter -out jpeg -ratio -rtype lanczos -rflag orient -resize 260 260 -l filelist.txt

Without the filelist parameter, testing on one file like this:

nconvert -npcd 2 -size 256x256+0 -ctype grey -corder inter -out jpeg -o new_%.jpg -wmfile "DVWM2.png" -wmflag bottom-left -ratio -rtype lanczos -rflag orient -resize 260 260 1127.jpg

Works. It creates a new jpg file out of 1127.jpg and adds the watermark contained in DVWM2.png.

I just need this program to work with a whole directory of over 14k of files. The param -l filelist.txt would do the trick.

Please help!

Posted: Sun Jul 20, 2008 4:15 pm
by fritzxnview
if it works with one file, it could be that a commandline with "for" works for all files:

for %i in (*.jpg) do nconvert -npcd 2 -size 256x256+0 -ctype grey -corder inter -out jpeg -o new_%i.jpg -wmfile "DVWM2.png" -wmflag bottom-left -ratio -rtype lanczos -rflag orient -resize 260 260 %i