This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
mastodon/lib/paperclip
ThibG 0ebc8d8626
Fix thumbnail color extraction (#14464)
* Fix contrast calculation for thumbnail color extraction

Luminance calculation was using 0-255 RGB values instead of 0-1 sRGB values,
leading to incorrectly-computed contrast values.

Since we use ColorDiff already, just use its XYZ colorspace conversion code
to get the value.

* Require at least 3:1 contrast for both accent and foreground colors

* Lower required contrast for the accent color
2020-08-02 18:47:44 +02:00
..
attachment_extensions.rb Add customizable thumbnails for audio and video attachments (#14145) 2020-06-29 13:56:55 +02:00
blurhash_transcoder.rb
color_extractor.rb Fix thumbnail color extraction (#14464) 2020-08-02 18:47:44 +02:00
gif_transcoder.rb
image_extractor.rb Fix audio uploads without embedded image (#14203) 2020-07-03 03:05:32 +02:00
lazy_thumbnail.rb
media_type_spoof_detector_extensions.rb Fix mimetype returning nil (#14356) 2020-07-19 13:09:47 +02:00
response_with_limit_adapter.rb Change content-type to be always computed from file data (#14452) 2020-08-02 11:21:10 +02:00
transcoder_extensions.rb Add color extraction for audio thumbnails (#14209) 2020-07-05 18:28:25 +02:00
type_corrector.rb Add customizable thumbnails for audio and video attachments (#14145) 2020-06-29 13:56:55 +02:00
url_generator_extensions.rb
video_transcoder.rb