PHP Animated Gif Resizer

You may also like...

6 Responses

  1. colmorex says:

    Thanks an keep up the good work.
    Anyway, I’ve tried to resize a gif from larger to smaller (from 720×90 to 320×40) but it lose quality and the resized gif is grainy.
    Is it possible to preserve the original frame’s quality?

    • Taha Paksu says:

      This script uses PHP GD’s image resize function, for your request to be happen, it should use image resample function.
      But if I use that for resizing, the palette changes on resample, and I can not prese

  2. mark says:

    Slight issue in that when I resize a gif using this it works fine. When I resize a gif which only loops once, this library makes it loop indefinitely. From what I could see in the class, it does not identify whether the GIF should loop. Any idea if thi

    • mark says:

      It’s OK thanks, I’ve rewitten some of it so that this now works. If you are interested in seeing what I did for this, drop me an email and I’ll show you what I’ve done to extend the class.

      • Taha Paksu says:

        Hi, happy to hear that you’ve solved the problem. I didn’t have the chance to check all the GIF variations, so it still may be containing bugs. I really don’t have the time to tinker with this class, but when I have enough time, I’ll check them all.

  1. Thursday, March 1, 2012

    […] eklediğim PHP Animated Gif Resizer class’ım Şubat 2012 innovasyon ödülü için yarışıyor. Desteğinizi esirgemeyin. […]

Leave a Reply

Your email address will not be published. Required fields are marked *