This project has moved and is read-only. For the latest updates, please go here.

Create Animated Gif with images of different dimensions

Jan 16, 2014 at 5:52 PM
I'm building an animated gif using images of different dimensions. Example of code I'm using for each image added to the collection is below
img = New MagickImage(stream)
Dim geom As MagickGeometry = New MagickGeometry(500, 500)
geom.FillArea = True
img.Resize(geom)
With New MagickGeometry(500,500) I was hoping it would resize the image to a max width or height of 500 but it seems to ignore the width value and only uses the height value? Can you tell me what I'm doing wrong.

Thanks for your help
Jan 16, 2014 at 6:44 PM
You can find information about how the resizing works here: http://www.imagemagick.org/Usage/resize/#fill. You need to Crop or Extent your image to make it exactly 500x500.
Jan 16, 2014 at 9:10 PM

Thank you