Skip to content

Commit

Permalink
Add coalesce option to avatar and header convert processor (#4552)
Browse files Browse the repository at this point in the history
Resolve #3199
  • Loading branch information
ykzts authored and Gargron committed Aug 8, 2017
1 parent ec3be87 commit 81c41d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/concerns/account_avatar.rb
Expand Up @@ -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] = { format: 'png', convert_options: '-coalesce' } if file.content_type == 'image/gif'
styles
end

Expand Down
2 changes: 1 addition & 1 deletion app/models/concerns/account_header.rb
Expand Up @@ -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] = { format: 'png', convert_options: '-coalesce' } if file.content_type == 'image/gif'
styles
end

Expand Down

0 comments on commit 81c41d8

Please sign in to comment.