mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-02-25 07:54:11 -05:00
FIX: only create animated thumbnails for GIFs
This commit is contained in:
parent
9e4942eeeb
commit
c5a7bce557
1 changed files with 1 additions and 1 deletions
|
@ -80,7 +80,7 @@ class OptimizedImage < ActiveRecord::Base
|
||||||
|
|
||||||
def self.resize(from, to, width, height, allow_animation=false)
|
def self.resize(from, to, width, height, allow_animation=false)
|
||||||
# NOTE: ORDER is important!
|
# NOTE: ORDER is important!
|
||||||
instructions = if allow_animation
|
instructions = if allow_animation && from =~ /\.GIF$/i
|
||||||
%W{
|
%W{
|
||||||
#{from}
|
#{from}
|
||||||
-coalesce
|
-coalesce
|
||||||
|
|
Loading…
Reference in a new issue