Resolve #3199
Fix the aspect ratio of animated GIF whose background is transparent.
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
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