mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: only create animated thumbnails for GIFs
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user