Skip to content
Snippets Groups Projects
Commit 87f10d47 authored by Yamagishi Kazutoshi's avatar Yamagishi Kazutoshi Committed by Eugen Rochko
Browse files

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

Resolve #3199

Fix the aspect ratio of animated GIF whose background is transparent.
parent 41c3389d
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment