mirror of
https://github.com/kikobar/mastodon.git
synced 2024-12-24 23:04:14 +00:00
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:
parent
41c3389d76
commit
87f10d476c
|
@ -8,7 +8,7 @@ module AccountAvatar
|
||||||
class_methods do
|
class_methods do
|
||||||
def avatar_styles(file)
|
def avatar_styles(file)
|
||||||
styles = { original: '120x120#' }
|
styles = { original: '120x120#' }
|
||||||
styles[:static] = { format: 'png' } if file.content_type == 'image/gif'
|
styles[:static] = { animated: false } if file.content_type == 'image/gif'
|
||||||
styles
|
styles
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ module AccountHeader
|
||||||
class_methods do
|
class_methods do
|
||||||
def header_styles(file)
|
def header_styles(file)
|
||||||
styles = { original: '700x335#' }
|
styles = { original: '700x335#' }
|
||||||
styles[:static] = { format: 'png' } if file.content_type == 'image/gif'
|
styles[:static] = { animated: false } if file.content_type == 'image/gif'
|
||||||
styles
|
styles
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue