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/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
4 years ago
..
attachment_extensions.rb Add customizable thumbnails for audio and video attachments (#14145) 5 years ago
blurhash_transcoder.rb Add blurhash to preview cards (#13984) 5 years ago
color_extractor.rb Fix thumbnail color extraction (#14464) 4 years ago
gif_transcoder.rb Fix GifReader exceptions (#13760) 5 years ago
image_extractor.rb Fix audio uploads without embedded image (#14203) 5 years ago
lazy_thumbnail.rb Update ESLint and RuboCop in Code Climate (#12534) 5 years ago
media_type_spoof_detector_extensions.rb Fix mimetype returning nil (#14356) 5 years ago
response_with_limit_adapter.rb Change content-type to be always computed from file data (#14452) 4 years ago
transcoder_extensions.rb Add color extraction for audio thumbnails (#14209) 5 years ago
type_corrector.rb Add customizable thumbnails for audio and video attachments (#14145) 5 years ago
url_generator_extensions.rb Fix Paperclip using deprecated URI.escape function (#13320) 5 years ago
video_transcoder.rb Fix videos with unsupported colorspace not being transcoded (#13242) 5 years ago