Open katerlouis opened 3 years ago
Not sure if that fits the purpose, but maybe interesting to know that sharp (the tool behind the static IPX provider) features an experimental option to access the dominant color (see https://sharp.pixelplumbing.com/api-input#stats -> dominant
).
Obviously this wouldn't work for the other providers.
@dpschen Is there are way to access this ?
@dpschen Is there are way to access this ?
I don’t know. Haven‘t looked into this since then.
Especially when lazy-loading it is nice to have the dominant color as background of the layout-placeholder. Would be nice as an option for
<nuxt-image>
and<nuxt-picture>
and maybe exposing the dominant color for other usage aswell.possible solutions to get the dominant color:
If you agree on adding this to
@nuxt/image
, I'd like to develop and propose a concept to you guys :) Would need more understanding of the module and vision of the module.