Code Monkey home page Code Monkey logo

pixellister's Introduction

πŸ‘ΎπŸ“ƒ Pixel Lister

Lists the pixels in a given image.

Using the app

You have (at least) two choices:

This project does not use any frameworks or anything fancy like that, just plain old HTML, JS, CSS πŸ˜…

What?

This app takes an image from you, then if you want:

  • color output: it'll give you the list of coordinates of the pixels, for each color separately.
  • black-and-white output: it'll give you the list of coordinates of the white pixels.

Features/Capabilities

  • Dithering using Floyd-Steinberg algorithm, or just a threshold filter
  • Inverting image before processing, if the image has more white pixels than black
  • Restrict output to a fixed number of pixels rather than fixed dimensions
  • Works locally, no data is sent anywhere (and I can't pay for a server anyway)

Why?

Why not? 😎

You can use the resulting CSV file to create an X-Y Scatter Plot, and now you can troll your friends (if any) with an unexpected image.

How?

Roughly, this is the process:

  1. You supply the image
  2. It is resized to a given size / given number of white pixels
  3. The color depth of the image is reduced (either with Floyd-Steinberg dithering, or for black-and-white images, just a simple threshold filter)
  4. The list of coordinates is generated
  5. This list can be copied or exported to a CSV file, TSV file, or text file.

Author

This project has been conceptualized and brought to life by Sreenikethan Iyer.

The package Color Thief is used to extract the optimum colors for dithering.

pixellister's People

Contributors

sreenikethani avatar

Watchers

 avatar

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.