You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mastodon/app
Eugen Rochko a7171af0a3
Fix avatar and header issues by using custom geometry detector (#6515)
* Fix avatar and header issues by using custom geometry detector

Revert a part of #6508. The file passed to dynamic styles method
was not actually a file, but an instance of Paperclip::Attachment,
which broke all styles by always returning {} from the method.

One problem with GIF avatars was that Paperclip::GeometryDetector
reported wrong dimensions for them, e.g. 120x120 GIF avatar would
for some reason be detected as 120x53. By writing our own geometry
parser, we can use FastImage, which also happens to be faster than
ImageMagick, to detect image dimensions, which are also correct.

Unfortunately, this PR does not implement skipping a `convert`
entirely if the dimensions are already correct, as I found no easy
way to write that behaviour into Paperclip without rewriting the
Paperclip::Thumbnail class.

* Only invoke convert if dimension or format needs to be changed
7 years ago
..
chewy Full-text search for authorized statuses (#6423) 7 years ago
controllers add parameter locked to /api/v1/update_credentials (#6506) 7 years ago
helpers Add direction tags to HTML e-mails for RTL languages (#6373) 7 years ago
javascript Fix media spoiler design (#6507) 7 years ago
lib Fix avatar and header issues by using custom geometry detector (#6515) 7 years ago
mailers Make sure status is not nil (#6428) 7 years ago
models Fix avatar and header issues by using custom geometry detector (#6515) 7 years ago
policies Allow admin to deactivate invite created by users (#5860) 7 years ago
presenters Cache relationships in API (#6482) 7 years ago
serializers Add preference to always display sensitive media (#6448) 7 years ago
services Fix #5173: Click card to embed external content (#6471) 7 years ago
validators Validation of count works even when text of status is nil (#6429) 7 years ago
views Save video metadata and improve video OpenGraph tags (#6481) 7 years ago
workers Rename ResolveRemoteAccountService to ResolveAccountService (#6327) 7 years ago