resize anim gif
| From: | aergis@gmail.com | Date: | Fri, 28 Mar 2008 11:11:22 +0000 |
| Subject: | resize anim gif | ||
| Groups: | php.gd.devel | ||
| Request: | Send a blank email to php-gd-devel+get-400@lists.php.net to get a copy of this message | ||
i'd like to resize gif containing multiple frames.
if i try this it only saves first frame :(
FILE *fp=0;
gdImagePtr im, im2;
int width,height,error=0;
fp = fopen("1.gif", "rb");
if (!fp) return -1;
im = gdImageCreateFromGif(fp);
fclose(fp);
fp = fopen("2.gif", "wb");
gdImageGif(im,fp);
fclose(fp);
gdImageDestroy(im);
someone possibly has that obviously terribly complex code that reads, resizes and saves all frames ?
i did find one solution with imagemagick convert, but it is surprisingly slow, way slower than imagemagick mogrify - which does not work correctly,
would gd version work ok, faster ?