mirror of
https://github.com/mastodon/mastodon.git
synced 2025-05-07 12:16:14 +00:00
Fix static version of animated PNG emojis not being properly extracted (#34337)
This commit is contained in:
parent
2283562ebd
commit
9686ae7060
|
@ -123,7 +123,14 @@ module Paperclip
|
||||||
end
|
end
|
||||||
|
|
||||||
def needs_convert?
|
def needs_convert?
|
||||||
needs_different_geometry? || needs_different_format? || needs_metadata_stripping?
|
strip_animations? || needs_different_geometry? || needs_different_format? || needs_metadata_stripping?
|
||||||
|
end
|
||||||
|
|
||||||
|
def strip_animations?
|
||||||
|
# Detecting whether the source image is animated across all our supported
|
||||||
|
# input file formats is not trivial, and converting unconditionally is just
|
||||||
|
# as simple for now
|
||||||
|
options[:style] == :static
|
||||||
end
|
end
|
||||||
|
|
||||||
def needs_different_geometry?
|
def needs_different_geometry?
|
||||||
|
|
Loading…
Reference in New Issue
Block a user