Coder Social home page Coder Social logo

notwoods / color-breakdown Goto Github PK

View Code? Open in Web Editor NEW
11.0 2.0 5.0 5.05 MB

Extract prominent colors from an image with this PWA tool.

Home Page: https://notwoods.github.io/color-breakdown

License: MIT License

CSS 6.10% HTML 17.69% JavaScript 14.51% TypeScript 61.71%
pwa offline extract-prominent-colors palette-api color-picker web-workers

color-breakdown's Introduction

Color Breakdown

Extract prominent colors from an image to create more visually engaging designs and apps.

Good visual design is essential for a successful app or site, and color schemes are a primary component of designs. Color Breakdown breaks down an image into the most prominent colors so you can use them in your designs. For example, you can create color-coordinated title cards for a song based on its album cover or adjust an app's toolbar color when its background image changes. Six main color profiles from the bitmap are extracted to help inform your design choices.

When you're ready to build your design, quickly copy colors by just clicking on the palettes for each image. Save a list of previously processed images so you can refer to other color swatches easily.


Color Breakdown is node-vibrant's missing GUI, aiming to expose the configuration options of node-vibrant. node-vibrant ports the Android Palette class to JavaScript, allowing you to extract prominent colors from images. Use these colors in your own designs to create more visually engaging designs and apps.

Inspired by SVGOMG!

Feature requests

Check out the issues to see what's planned, or suggest ideas of your own!

Developing

Built with

Setting up Dev

Install dependencies:

npm install

Run dev server:

npm run build
npm start

Licensing

This project is available under the MIT License.

color-breakdown's People

Contributors

dependabot-preview[bot] avatar dependabot-support avatar dependabot[bot] avatar imgbotapp avatar notwoods avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

color-breakdown's Issues

Support File Share Target API

Sharing images is coming soon to the File Share Target API. Add code to the service worker to handle a POST request and call the add image code.

Support node-vibrant options

Options:

  • colorCount - amount of colors in initial palette from which the swatches will be generated
  • quality - Scale down factor used in downsampling stage
  • maxDimension -The max size of the image's longer side used in downsampling stage

Split out list and palette view code

To help improve load times, it's better to have seperate code for the list (left side) and palette (right side). This way the larger node-vibrant library can be loaded later on with the palette.

History

Save previous images and palettes, and allow them to be reloaded. Need to use idb to store the history and canvas to convert to an image blob.

Image from URL

Allow the user to input an image URL instead of uploading an image. Requires a server to load the photo.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.