Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 187431
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T15:49:20+00:00 2026-05-11T15:49:20+00:00

I need to resize an animated GIF file without destroying the animation. How can

  • 0

I need to resize an animated GIF file without destroying the animation.

How can I do it using PHP?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T15:49:21+00:00Added an answer on May 11, 2026 at 3:49 pm

    if you have imagemagick access, you can do this:

    system('convert big.gif -coalesce coalesce.gif'); system('convert -size 200x100 coalesce.gif -resize 200x10 small.gif'); 

    this is most likely possible with the imagemagick plugin if you don’t have system() access

    NOTE: this may create a larger filesize though a smaller dimensions image due to coalescing essentially deoptimizing the image.

    UPDATE: If you don’t have ImageMagick access, you should be able to use a combination of the following steps to resize an animated gif (assuming you have GD access):

    1. Detect if the image is an animated gif: Can I detect animated gifs using php and gd? (top answer)
    2. Split the animated gif into individual frames: http://www.phpclasses.org/package/3234-PHP-Split-GIF-animations-into-multiple-images.html
    3. Resize the individual frames: http://www.akemapa.com/2008/07/10/php-gd-resize-transparent-image-png-gif/
    4. Recomposite the frames into an animated gif again: http://www.phpclasses.org/package/3163-PHP-Generate-GIF-animations-from-a-set-of-GIF-images.html

    This is definitely much more intensive than the ImageMagick route, but it should be technically possible.

    If you get it working, please share with the world!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to resize images in php using GD to a fixed size but
I need to resize PNG, JPEG and GIF files. How can I do this
I need to resize a char array[size] to char array[new_size] at runtime. How can
I need to resize an 200*200 image to 60*60 in rmagick without losing image
I've small preg_replace problem. I need to resize iframe code output so I'm using
I have a UITableViewController and I need to resize the table vertically. I can't
Resize a table cell using css {resize:both;} not working with table I need to
I php need to resize an image so that both width and height after
I am using a grouped tableview and need to resize 1 cell where the
I need to resize an mpeg file down to a smaller size (from 720p

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.