Batch conversion
Posted: 2017-07-31T11:13:13-07:00
Dear All,
I would like to convert files which are in one directory to another (resizing, format conversion and put a text into the picture). I managed to write for every command a command line which worked for one file but not for all. I am using ImageMagick 7.0 and Windows 10.
The conversion for one file is
C:\Programme\ImageMagick-7.0.6-Q16\magick C:\temp\Bildquelle\test1.jpg -compress LZW C:\temp\bildablage\test1.tif
C:\Programme\ImageMagick-7.0.6-Q16\magick C:\temp\Bildbearbeitung\test1.tif -fill black -pointsize 120 -font arrial -annotate +100+200 %f C:\temp\Bildumbenennung\test1_bearb.tif
C:\Programme\ImageMagick-7.0.6-Q16\magick C:\temp\Bildbearbeitung\*test1.tif -resize 16% C:\temp\bildgroesse\test1_og.tif
Now I want to convert all (e.g. 20) files and replaced “test1.jpg/test1.tif” with “*.jpg/*.tif”; “*”as a wild card. No reaction.
I have read http://www.imagemagick.org/Usage/windows/#file_handling but I have not understood it. Shall I use “%%a” instead of “*” or what else is necessary to do?
Perhaps someone can help me
Thanks in advance
Uli
I would like to convert files which are in one directory to another (resizing, format conversion and put a text into the picture). I managed to write for every command a command line which worked for one file but not for all. I am using ImageMagick 7.0 and Windows 10.
The conversion for one file is
C:\Programme\ImageMagick-7.0.6-Q16\magick C:\temp\Bildquelle\test1.jpg -compress LZW C:\temp\bildablage\test1.tif
C:\Programme\ImageMagick-7.0.6-Q16\magick C:\temp\Bildbearbeitung\test1.tif -fill black -pointsize 120 -font arrial -annotate +100+200 %f C:\temp\Bildumbenennung\test1_bearb.tif
C:\Programme\ImageMagick-7.0.6-Q16\magick C:\temp\Bildbearbeitung\*test1.tif -resize 16% C:\temp\bildgroesse\test1_og.tif
Now I want to convert all (e.g. 20) files and replaced “test1.jpg/test1.tif” with “*.jpg/*.tif”; “*”as a wild card. No reaction.
I have read http://www.imagemagick.org/Usage/windows/#file_handling but I have not understood it. Shall I use “%%a” instead of “*” or what else is necessary to do?
Perhaps someone can help me
Thanks in advance
Uli