probably simple, but I don't understand!
Posted: 2007-08-16T05:48:01-07:00
Hi,
I'm pretty much a complete novice with imagemagick, so I hope someone out there can help me with this!
I'm doing some computer simulations and the output from the model is a series of .png images. I have used image magick in the past to convert these pngs to a single animated gif, which is nice and simple. Now, I want to select only a specific area of each image, scale that up a bit and then make a new gif of these enlargements... I've managed to do the crop and resize without problem to generate a second set of .pngs of the appropriate location in the original images. But when I convert this set of pngs to a gif, the resulting image retains the aspect ratio of the original set of images with the cut out section that I want sat in the middle... These are the commands I used:
convert stub*.png -crop 94x140+28+120 -resize 400 zoom%04d.png
and then
convert zoom*.png zoom.gif
but like I say, rather than getting a single gif with the dimensions of the "zoom*.png" images, I get one with an enlarged version of the original images, but with only grey except for where my cropped region was... what am I doing wrong? The individual zoom*.png images all have the correct ratio (400x596)...
Any advice would be greatly appreciated!
Thanks
Paul
I'm pretty much a complete novice with imagemagick, so I hope someone out there can help me with this!
I'm doing some computer simulations and the output from the model is a series of .png images. I have used image magick in the past to convert these pngs to a single animated gif, which is nice and simple. Now, I want to select only a specific area of each image, scale that up a bit and then make a new gif of these enlargements... I've managed to do the crop and resize without problem to generate a second set of .pngs of the appropriate location in the original images. But when I convert this set of pngs to a gif, the resulting image retains the aspect ratio of the original set of images with the cut out section that I want sat in the middle... These are the commands I used:
convert stub*.png -crop 94x140+28+120 -resize 400 zoom%04d.png
and then
convert zoom*.png zoom.gif
but like I say, rather than getting a single gif with the dimensions of the "zoom*.png" images, I get one with an enlarged version of the original images, but with only grey except for where my cropped region was... what am I doing wrong? The individual zoom*.png images all have the correct ratio (400x596)...
Any advice would be greatly appreciated!
Thanks
Paul