admin管理员组

文章数量:1122826

Is it possible to disable the default gif compression in Wordpress. I'm uploading animated gifs and they are turning soft.

Any advice much appreciated.

Attached is a screen grab illustrating the issue. lhs is the gif dragged into browser from the desktop, rhs is the gif as it appears on my website.

thanks Nigel

Is it possible to disable the default gif compression in Wordpress. I'm uploading animated gifs and they are turning soft.

Any advice much appreciated.

Attached is a screen grab illustrating the issue. lhs is the gif dragged into browser from the desktop, rhs is the gif as it appears on my website.

thanks Nigel

Share Improve this question edited Sep 16, 2017 at 2:19 nigelgardiner asked Sep 13, 2017 at 20:34 nigelgardinernigelgardiner 12 bronze badges 1
  • 2 WP doesn't compress GIF's, it recompresses JPEG's, are you sure you're not referring to resizing? – Tom J Nowell Commented Sep 13, 2017 at 23:30
Add a comment  | 

1 Answer 1

Reset to default 0

There are two main concerns with using animated gifs in WordPress: dimensions and file size.

When you upload a gif file to the media library, WordPress stores the original file and additional files for different sizes ( medium, thumbnail ). Gifs of other sizes will be stored with one frame of animation only, so they will lose their animation capability. While adding an animated gif into a post/page, always select the full size ( this is the only one which preserves animation ).

Animated gifs could be very large. It is important to compress them before uploading to the media library. To compress them without losing quality, you should use a program employing lossless compression algorithm. You can find a good one, called Gifsicle on GitHub. This is a command line tool, so if you are not comfortable with command line, you can find other programs offering GUI. For Mac - ImageOptim, for Windows - FileOptimizer. There is also a web application Compressor.io available.

本文标签: mediaDisable wordpress gif compression