mastodon/lib
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
..
assets
chewy/strategy
devise
generators
json_ld
mastodon Bump version to 3.2.0 (#14395) 2020-07-27 00:07:26 +02:00
paperclip Fix thumbnail color extraction (#14464) 2020-08-02 18:47:44 +02:00
redis
tasks
templates
cli.rb