1
0
puyopuyotetr.is/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 Add emoji autosuggest (#5053) 2017-09-23 14:47:32 +02:00
chewy/strategy Fix records not being indexed sometimes (#12024) 2019-10-01 01:19:11 +02:00
devise Fix authentication before 2FA challenge (#11943) 2019-09-24 04:35:36 +02:00
generators Add post-deployment migration system (#8182) 2018-08-13 13:40:01 +02:00
json_ld Fix preloaded JSON-LD context for identity not being used (#12138) 2019-10-10 06:48:53 +02:00
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 Change Redis#exists calls to Redis#exists? to avoid deprecation warning (#14191) 2020-07-01 19:05:21 +02:00
tasks Add emojis:generate_borders Rake task (#13773) 2020-06-09 00:12:20 +02:00
templates Add post-deployment migration system (#8182) 2018-08-13 13:40:01 +02:00
cli.rb Fix help text around tootctl email_domain_blocks (#14147) 2020-06-26 21:28:40 +02:00