colorlip: A JavaScript library for extracting perceptually representative colors from illustrations and photos
Hey everyone, I'm nazunya! A while ago, I was building a local service for collecting illustrations and reference images. At that time, I created a color extraction feature to obtain colors that re...

Source: DEV Community
Hey everyone, I'm nazunya! A while ago, I was building a local service for collecting illustrations and reference images. At that time, I created a color extraction feature to obtain colors that represent those illustrations and photos. It turned out surprisingly well, so I decided to extract it into a library. I have released v1.0.0 as an npm package called colorlip, and I'd like to share it with you! Quick Overview! A lightweight library available for browsers and Node.js that extracts representative colors and palettes based on human perception. Tuned for illustrations and product photos, making it ideal for creator-focused services, social media, and e-commerce sites. In addition to Hex and RGB, it outputs HSL, Lab, oklch, and more, which is convenient for post-processing and browser-based usage. Try it out right now: https://na-zu-nya.github.io/colorlip/ GitHub: https://github.com/na-zu-nya/colorlip Motivation While building a service to organize illustrations and other media, I w