This is my first contact with imagemagick. I have folder with 10 diffrent images. In one query I am trying to create four thumbnail sizes:
1024x768 - normall
360x270 - cut to fit
104x78 - cut to fit
68x51 - cut to fit
created by me questions almost works:
Code: Select all
convert path/folder/*.*
( +clone -strip -thumbnail "68x51^>" -background white -gravity center -extent 68x51 -quality 80 +adjoin -scene 1 -write path/folder/%d_68x51.jpg +delete )
( +clone -strip -thumbnail "104x78^>" -background white -gravity center -extent 104x78 -quality 80 +adjoin -scene 1 -write path/folder/%d_104x78.jpg +delete )
( +clone -strip -thumbnail "360x270^>" -background white -gravity center -extent 360x270 -quality 80 +adjoin -scene 1 -write path/folder/%d_360x270.jpg +delete )
-strip -thumbnail "1024x768>" -quality 80 +adjoin -scene 1 path/folder/%d_1024x768.jpg
1_1024x768, 1_360x270, 1_104x78, 1_68x51
2_1024x768, 2_360x270, 2_104x78, 2_68x51
3_1024x768, 3_360x270, 3_104x78, 3_68x51
...
Thanks for any help.