Revert "Set false to animated options for thumbnail processor" (#4550)

* Revert "Adjust tags and accounts page (#4534)"

This reverts commit a3e53bd442.

* Revert "feat: Cache status height to avoid expensive renders (#4439)"

This reverts commit 8eb6d171e6.

* Revert "Refactor Avatar and AvatarOverlay to have 'account' as prop instead of src and staticSrc (#4526)"

This reverts commit 5942347407.

* Revert "Update dependencies for Ruby (#4543)"

This reverts commit 22db947225.

* Revert "[Docker] Add multicore support to "make" and "bundler" (#4544)"

This reverts commit 5d408fd9aa.

* Revert "It makes no sense to try using invalid or expired link again (#4521)"

This reverts commit 47579ec58c.

* Revert "i18n: Update Polish translation (#4545)"

This reverts commit 3363a05539.

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

This reverts commit 87f10d476c.
master
Yamagishi Kazutoshi 7 years ago committed by Eugen Rochko
parent a3e53bd442
commit 1b5d26735e
  1. 2
      app/models/concerns/account_avatar.rb
  2. 2
      app/models/concerns/account_header.rb

@ -8,7 +8,7 @@ module AccountAvatar
class_methods do
def avatar_styles(file)
styles = { original: '120x120#' }
styles[:static] = { animated: false } if file.content_type == 'image/gif'
styles[:static] = { format: 'png' } 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] = { animated: false } if file.content_type == 'image/gif'
styles[:static] = { format: 'png' } if file.content_type == 'image/gif'
styles
end

Loading…
Cancel
Save