PHP Classes

Mutiple image sizes.

Recommend this page to a friend!

      GIF images into animated GIF with native PHP class  >  All threads  >  Mutiple image sizes.  >  (Un) Subscribe thread alerts  
Subject:Mutiple image sizes.
Summary:How do I combine mutiple images of various sizes?
Messages:3
Author:Matt Nowak
Date:2008-06-02 12:17:35
Update:2008-06-05 12:03:53
 

  1. Mutiple image sizes.   Reply   Report abuse  
Picture of Matt Nowak Matt Nowak - 2008-06-02 12:17:35
I have a number of images, that are difference sizes, that I wish to animate. However when I run the script, it appears to take the size of the first image and crop all the later images to that size. Is it possible to take a poll of all the images and make the animated gif the largest width, height of the image pool?

  2. Re: Mutiple image sizes.   Reply   Report abuse  
Picture of László Zsidi László Zsidi - 2008-06-04 03:59:32 - In reply to message 1 from Matt Nowak
Hi,

A simple idea that try to determine the biggest frame dimensions and resize on-the-fly all frames which has smaller dimensions than these dimensions.

  3. Re: Mutiple image sizes.   Reply   Report abuse  
Picture of Matt Nowak Matt Nowak - 2008-06-05 12:03:53 - In reply to message 2 from László Zsidi
That was the approach I took. While reading all the images into the array, I would check to see what the largest height and width is. then I would go back and modify the first image in the array (just added white space). Then I built the gif. Worked pretty well.

Thanks for the help.