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/lib
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
..
activitypub Push discovered status through streaming API within a time window (#6484) 7 years ago
ostatus Push discovered status through streaming API within a time window (#6484) 7 years ago
settings
activity_tracker.rb Fix stats expiring too quickly because of variable mistake (#6155) 7 years ago
application_extension.rb
delivery_failure_tracker.rb After 7 days of repeated delivery failures, give up on inbox (#5131) 7 years ago
exceptions.rb
extractor.rb Using double splat operator (#5859) 7 years ago
fast_geometry_parser.rb Fix avatar and header issues by using custom geometry detector (#6515) 7 years ago
feed_manager.rb Allow hiding of reblogs from followed users (#5762) 7 years ago
formatter.rb Don't normalize URLs in toots (#6134) 7 years ago
hash_object.rb
inline_renderer.rb
language_detector.rb Improve language filter (#5724) 7 years ago
provider_discovery.rb Fix XML oEmbed support discovery (#6104) 7 years ago
request.rb Using double splat operator (#5859) 7 years ago
sanitize_config.rb [!] Sanitize incoming classlist properly (#6162) 7 years ago
status_filter.rb Full-text search for authorized statuses (#6423) 7 years ago
status_finder.rb Raise an error for remote url in StatusFinder (#4776) 8 years ago
tag_manager.rb Introduce OStatus::TagManager (#5008) 7 years ago
themes.rb Add support for multiple themes (#4959) 7 years ago
user_settings_decorator.rb Add preference to always display sensitive media (#6448) 7 years ago
webfinger_resource.rb