AnimGif and ImageCache plays well with Image Magick

Published at: February 6th, 2014
kittens

The good old animated Gif is a cool format again. It works on everything, no Flash or HTML5 video needed. You can handle it as simple as a static image... or not? By default the majority of Drupal installs are using GD to create thumbnails (image styles). But the stock PHP GD extension  (coming with mod_php) lacks the functionality of properly handling animGifs and your mainpage or lister pages will remain static and boring.

kittens on turntables

The solution: switch from GD to Image Magick 

The ImageMagick (tested with version 7.x-1.0) module supports the command line Image Magick tool. On Ubuntu you can install it with a simple apt-get install imagemagick command. Once your php can run the convert command you can switch to it on /admin/config/media/image-toolkit . Don't check the Enable the GraphicsMagick support - we experienced problems with thumbnail generation when it was enabled and it's not needed anyway. With enabled Image Magick the Image javascript crop module gives crop functionality for animGifs too.
A further advantage of Image Magick is that the quality of your simple jpg thumbnails will be much better with the same compression than they are with the stock php gd.

AnimGif has reborn, Drupal should not miss the new golden age of funny movie clips! :)

Péter Pónya
CTO, co-owner

I'm an experienced backend developer but as a CTO I'm also responsible for our devops/CI and I'm often evaluating different technologies.

Published at: February 6th, 2014
Share

Get Your Project Started Today!

You might also like...

Péter Pónya | January 24th, 2014

Will you come to DRUPAL DEVELOPER DAYS SZEGED 2014?

Once there was a legendary DrupalCon in Szeged (Hungary), and now again: the Developer Days will take place there.

Péter Pónya | January 6th, 2014

A short look-around for new Drupal alternatives

My friend and co-owner of our company ( http://www.brainsum.com ) asked me to check out some alternatives of Drupal. Maybe we should use some of them for some project types he said.

Péter Pónya | October 2nd, 2013

Route planner website launched

The website I told about at DrupalCon Prague just went live: routing.palivovekarty.sk finally!

Péter Pónya | September 26th, 2013

Route planning with Drupal + OpenLayers and powering Phonegap mobile apps

I had a session at DrupalCon Prague yesterday. I just created this blog to have a place to share and discuss more details about this ongoing real-world project.
I will share details in separate posts topic-by-topic and I promise I will try to answer all the incoming questions.