0
Answered

Is it possible to add a moving gif file as an image?

3155607 5 months ago updated by Jesse Owens (Community Manager) 4 weeks ago 5

I want to place a moving gif on my site, but when I try to upload it, it says there is an error. Is there any way I can do this?

Answer

Answer

Since your theme will almost always resize an image to fit it's featured image size, usually a GIF will not work as a featured image. The only way around this would be to make sure that your GIF is exactly the same dimensions as your theme's featured image size.


If your Hosting Support team was able to solve the HTTP error, it's likely that they already added the .htaccess code, and I wouldn't recommend editing it manually unless you're still getting that error. That said, most hosting providers will provide a File Manager that you can access your .htaccess file from, or you can use FTP.

I recommend putting that line at the very top.

Hello, 
Thanks for the great question. The key step to using animated GIF's in WordPress is to use the "Full size" image.

When you upload any image in WordPress, it automatically creates several image sizes, known as "Thumbnails," so that it can help you keep your website fast by giving you smaller image sizes to serve to your visitors. However, this process removes the animation from a GIF file. 

When you add the image to your Post or Page, be sure to select the "Full Size" image size.

For the issue with the HTTP Error when uploading images, this is generally a hosting issue. It can typically be resolved by adding the following line to your .htaccess file:

SetEnv MAGICK_THREAD_LIMIT 1

I hope this helps!

Hi Jesse, thanks for the help! It seems to work in post now, but the gif doesn't play when it's a featured image - any help there? Also, how do I access the .htaccess file and where exactly should that line go?

Answer

Since your theme will almost always resize an image to fit it's featured image size, usually a GIF will not work as a featured image. The only way around this would be to make sure that your GIF is exactly the same dimensions as your theme's featured image size.


If your Hosting Support team was able to solve the HTTP error, it's likely that they already added the .htaccess code, and I wouldn't recommend editing it manually unless you're still getting that error. That said, most hosting providers will provide a File Manager that you can access your .htaccess file from, or you can use FTP.

I recommend putting that line at the very top.

Answered

Thank you for contacting us!

WordPress fully supports the use of GIF files in your content areas and if you are getting errors uploading them it is likely there is a server setting that is preventing the upload from completing properly.

If you post the error in this thread we will have a better understanding of what might be causing this problem, or you can reach out to your hosting provider for additional assistance.  Please let us know if there is anything else that we can do to assist you.

I'm having this same issue as well and I keep getting an http error. I've tried to contact my hosting provider but they weren't able to do much other than do something with the php.. although after he did this I was able to upload the gif into the media library, as soon as the gifs upload, they don't play. I've also tried uploading them into a portfolio post and they also just show up as static images. I've tried to change themes as well and nothing has worked. Do you have any sort of support line that I can talk to to fix this?