mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-23 19:21:26 +00:00
e197c7b29d
To sort an image's colors from darkest to lightest, you can then do: ```handlebars {{ {{ $colorsByLuminance := sort $image.Colors "Luminance" }} ``` This uses the formula defined here: https://www.w3.org/TR/WCAG21/#dfn-relative-luminance Fixes #10450 |
||
---|---|---|
.. | ||
exif | ||
webp | ||
auto_orient.go | ||
color.go | ||
color_test.go | ||
config.go | ||
config_test.go | ||
dither.go | ||
filters.go | ||
filters_test.go | ||
image.go | ||
image_resource.go | ||
opacity.go | ||
overlay.go | ||
padding.go | ||
process.go | ||
resampling.go | ||
smartcrop.go | ||
text.go |