diff --git a/app/models/optimized_image.rb b/app/models/optimized_image.rb index 08ec00945..b49a2e990 100644 --- a/app/models/optimized_image.rb +++ b/app/models/optimized_image.rb @@ -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