FIX: only create animated thumbnails for GIFs

This commit is contained in:
Régis Hanol 2014-12-22 12:56:19 +01:00
parent 9e4942eeeb
commit c5a7bce557

View file

@ -80,7 +80,7 @@ class OptimizedImage < ActiveRecord::Base
def self.resize(from, to, width, height, allow_animation=false)
# NOTE: ORDER is important!
instructions = if allow_animation
instructions = if allow_animation && from =~ /\.GIF$/i
%W{
#{from}
-coalesce