Hi--
I have the following code saved in a file named iv_batch.cmd
and it sits in the same folder as i_view32.exe. In that same folder is another folder named batch_image_conversions.
When I drag batch_image_conversions onto iv_batch.cmd, it works correctly (all gif images converted to jpg, grayscale, and rotated to the right).
However, if I try to achieve the same result by using
for %%z in (*.gif) do "c:\program files\irfanview 4.10\i_view32.exe" "%%z" /import_pal=grayscale.pal /rotate_r /convert="%%~nz.jpg" (grayscale.pal is a palette file)
I get the gifs converted to jpgs and rotated to the right, but no grayscale. I tried using a few different palettes, but with no luck.
What's odd is that essentially the same thing typed at the command line:
>i_view32 foo.gif /import_pal=grayscale.pal /rotate_r /convert=foo.jpg
works as expected!
Any suggestions on how to get /import_pal working correctly in my iv_batch.cmd?
I have the following code saved in a file named iv_batch.cmd
Code:
[COLOR="Green"] @echo off cd "%1" for %%z in (*.gif) do "c:\program files\irfanview 4.10\i_view32.exe" "%%z" /gray /rotate_r /convert="%%~nz.jpg" pause :end[/COLOR]
When I drag batch_image_conversions onto iv_batch.cmd, it works correctly (all gif images converted to jpg, grayscale, and rotated to the right).
However, if I try to achieve the same result by using
for %%z in (*.gif) do "c:\program files\irfanview 4.10\i_view32.exe" "%%z" /import_pal=grayscale.pal /rotate_r /convert="%%~nz.jpg" (grayscale.pal is a palette file)
I get the gifs converted to jpgs and rotated to the right, but no grayscale. I tried using a few different palettes, but with no luck.
What's odd is that essentially the same thing typed at the command line:
>i_view32 foo.gif /import_pal=grayscale.pal /rotate_r /convert=foo.jpg
works as expected!
Any suggestions on how to get /import_pal working correctly in my iv_batch.cmd?
Comment