Set false to animated options for thumbnail processor (#4547)

Resolve #3199

Fix the aspect ratio of animated GIF whose background is transparent.
This commit is contained in:
Yamagishi Kazutoshi authored and Eugen Rochko committed 2017-08-07 14:41:21 +02:00
1 parent 41c3389d76
commit 87f10d476c
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -8,7 +8,7 @@ module AccountAvatar
class_methods do
def avatar_styles(file)
styles = { original: '120x120#' }
styles[:static] = { format: 'png' } if file.content_type == 'image/gif'
styles[:static] = { animated: false } if file.content_type == 'image/gif'
styles
end
+1 -1
View File
@@ -8,7 +8,7 @@ module AccountHeader
class_methods do
def header_styles(file)
styles = { original: '700x335#' }
styles[:static] = { format: 'png' } if file.content_type == 'image/gif'
styles[:static] = { animated: false } if file.content_type == 'image/gif'
styles
end