Imagick: gifs, and background color

Posted by TheButch3r on Stack Overflow See other posts from Stack Overflow or by TheButch3r
Published on 2010-05-20T00:44:58Z Indexed on 2010/05/20 0:50 UTC
Read the original article Hit count: 265

Filed under:
|
|

Hi, I have 2 questions about using the php imagick class that I can't get working properly...

1.) I tried resizing / cropping a gif, and treated it as a normal image. It seemed to work, except that a few frames in the middle of the animation contained a small patch of artifacts. Is there a setting that should be used when working with multi-frame gifs?

2.) Is there a simple command to resize images if they are too small by just adding a background? For instance, if an image is 10x10, could I add a white background, and have a 100x100px image with the original in the upper left corner?

Thanks for any help!

© Stack Overflow or respective owner

Related posts about imagick

Related posts about imagemagick