Page 1 of 1

Convert pictures via batch file in different sizes

Posted: Mon Dec 11, 2006 12:15 pm
by Lakrimosa
Hi @ll,

is it possible to convert pictures at once in different sizes by using NConvert or XBS Script?

To be more specific:
I have an iPod video Theme and want convert it in a iPod Nano Theme.
The Theme incudes nearly 400 .bmp files in different sizes. The Nano has a smaller display as the video and this is why every picture has to convert in a new size and the new size is not the same for all of the 400 .bmp files.


For example:
pic000.bmp - old size 40x40 - new size 20x20
pic001.bmp - old size 124x85 - new size 75x40
and so on...

I know that I have to write down every filename with the new size. But it would be great if I have to do it only once and not for every Theme I want to convert.

Maybe someone can help me here.
Thanks in advance.

Re: Convert pictures via batch file in different sizes

Posted: Mon Dec 11, 2006 12:30 pm
by xnview
Lakrimosa wrote:Hi @ll,

is it possible to convert pictures at once in different sizes by using NConvert or XBS Script?

To be more specific:
I have an iPod video Theme and want convert it in a iPod Nano Theme.
The Theme incudes nearly 400 .bmp files in different sizes. The Nano has a smaller display as the video and this is why every picture has to convert in a new size and the new size is not the same for all of the 400 .bmp files.


For example:
pic000.bmp - old size 40x40 - new size 20x20
pic001.bmp - old size 124x85 - new size 75x40
and so on...

I know that I have to write down every filename with the new size. But it would be great if I have to do it only once and not for every Theme I want to convert.

Maybe someone can help me here.
Thanks in advance.
No but you can use 2 command with nconvert

Posted: Mon Dec 11, 2006 2:18 pm
by Lakrimosa
Hi Pierre,

thanks for the quick answer.
OK, then I will try to create something in NConvert.
This will be funny :mrgreen: but I will try.

Posted: Mon Dec 11, 2006 8:53 pm
by helmut
Lakrimosa wrote:OK, then I will try to create something in NConvert.
This will be funny :mrgreen: but I will try.
To get the real fun have a look at the info in How to use nconvert. ;-)

Posted: Mon Dec 11, 2006 9:54 pm
by Lakrimosa
Hehe, I know. :wink:
I read it and I read some other infos which I have "googled".
Well I have wrote the following line in a .bat file:

d:\ipod\test\test\nconvert.exe -in pic000.bmp -resize 120 100 -o pic010.bmp
and got an error: Bad input format ´pic000.bmp´

Then I tried :
d:\ipod\test\test\nconvert.exe pic000.bmp -resize 120 100 -o pic010.bmp
and got the following message:
Conversion of pic000.bmp into pic000.bmp OK
Error: Can`t open file (120)
Error: Can`t open file (100)
Error: Can`t open file (-o)
Error: Can`t open file (pic010.bmp)

What must I do that nconvert will only resize the file pic000.bmp and not another one in the same path?
The .bat file, nconvert.exe and pic000.bmp are in the path d:\ipod\test\test\

Thanks in advance.
Lakrimosa

Posted: Tue Dec 12, 2006 7:20 am
by xnview
Lakrimosa wrote:Hehe, I know. :wink:
I read it and I read some other infos which I have "googled".
Well I have wrote the following line in a .bat file:

d:\ipod\test\test\nconvert.exe -in pic000.bmp -resize 120 100 -o pic010.bmp
and got an error: Bad input format ´pic000.bmp´

Then I tried :
d:\ipod\test\test\nconvert.exe pic000.bmp -resize 120 100 -o pic010.bmp
and got the following message:
Conversion of pic000.bmp into pic000.bmp OK
Error: Can`t open file (120)
Error: Can`t open file (100)
Error: Can`t open file (-o)
Error: Can`t open file (pic010.bmp)

What must I do that nconvert will only resize the file pic000.bmp and not another one in the same path?
The .bat file, nconvert.exe and pic000.bmp are in the path d:\ipod\test\test\

Thanks in advance.
Lakrimosa
Try:
nconvert.exe -resize 120 100 -out bmp -o pic010.bmp pic000.bmp

Posted: Tue Dec 12, 2006 6:19 pm
by Lakrimosa
:mrgreen:
It works!!! Thank you very much :P