technologiestiftung / ki-portrait

images from the KI-Portrait exhibit @ CityLAB Sommerfest 2023
https://ki-portrait.citylab-berlin.org
MIT License
1 stars 0 forks source link

Feat: Improve color detection using average color values #14

Closed vogelino closed 1 year ago

vogelino commented 1 year ago

This PR calculate the avg lightness, hue and saturation by looking at each individual pixel in the image. This solution is not perfect but better than the previous method, which consisted in extracting the values from the first color of the palette.

netlify[bot] commented 1 year ago

Deploy Preview for ki-portrait ready!

Name Link
Latest commit 7c996f788ab5a39bd1a1fd765ae1a3843a63ec22
Latest deploy log https://app.netlify.com/sites/ki-portrait/deploys/651198bb81c00b0008124006
Deploy Preview https://deploy-preview-14--ki-portrait.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

socket-security[bot] commented 1 year ago

New dependencies detected. Learn more about Socket for GitHub ↗︎

Packages Version New capabilities Transitives Size Publisher
@types/splashy 5.0.0 None +0 2.83 kB types
node-vibrant 3.2.0-alpha eval +75 16.4 MB akfish
color.js 1.2.0 None +0 13.3 kB luukdv
get-pixels 3.3.3 environment +46 3.09 MB mikolalysenko
sharp 0.32.6 filesystem, shell, environment +21 1.42 MB lovell