WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an animated gif I want to show in two places, having two different sizes.

I am creating two sizes in my functions.php, using

add_image_size( 'small-feature', 500, 300 );
add_image_size( 'gallery-thumb', 120, 9999 );

If the uploaded file is 500 x 300 px, it will keep the animation, as it no resizing happens. If the image is to be resized, the animation is lost.

Is there a way I can resize these images and still keep the animation in the original .gif file?

share|improve this question
Please take a look at the resulting file format for the thumbnail. – kaiser Sep 19 '12 at 17:14

According to this stackoverflow question, there is a program called imagemagick that might do this for you server side but it would probably be outside of WordPress. Otherwise, it looks like you have to shrink every frame and then put it all back together.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.