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 Add blurhash to preview cards (#13984) 2020-06-05 23:10:41 +02:00
color_extractor.rb Fix thumbnail color extraction (#14464) 2020-08-02 18:47:44 +02:00
gif_transcoder.rb Fix GifReader exceptions (#13760) 2020-05-15 11:38:12 +02:00
image_extractor.rb Fix audio uploads without embedded image (#14203) 2020-07-03 03:05:32 +02:00
lazy_thumbnail.rb Update ESLint and RuboCop in Code Climate (#12534) 2019-12-02 18:25:43 +01:00
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 Fix Paperclip using deprecated URI.escape function (#13320) 2020-03-26 15:09:16 +01:00
video_transcoder.rb Fix videos with unsupported colorspace not being transcoded (#13242) 2020-03-10 11:58:40 +01:00