Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I need to insert an animated gif for a feature image but I don't understand if is possible. Right now when I try to upload a gif, wordpress create automatically a gif single frame.

Is it possible to do this and what part of code I have to modify?

Thank you so much in advance!

share|improve this question
add comment

1 Answer

To use gifs in WordPress you need to insert the full size of the uploaded gif (the original size).

In the Media Box : Size: Full Size

Any other size you choose will not render because of how GD crops and re-sizes the photos, it does so by taking a single frame, to make it animated you would have to recomposite the frames, something which WordPress does not do.

If your featured image is not inserting the full size that means your theme ( or a plugin) is altering which size can be inserted into the post. You can check by clicking:

"Set featured image" --> Select your gif --> look at ATTACHMENT DETAILS and compare the size you see to the original image.

ps. As far as I can tell this is due to GD and not WordPress (though it is possible to code).

share|improve this answer
    
Thank you so much Wyck! I will take a look!!!! –  markobarna Feb 28 '13 at 11:13
add comment

Your Answer

 
discard

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.