Git Product home page Git Product logo

mecca-pix's Introduction

mecca-pix

This thing came about because of my deep frustration with every SVG tool I could find for tracing bitmaps, I simply wanted to preserve the pixels 1:1 for consistent results. When I found the technique used in Pixels.svg, which is itself inspired by px2svg, I was so pleased with it that I decided to write the functionality into my own app.

Intended for small, low-res images with limited colors. Output is rendered pixel for vector "pixel", a path with a stroke with a length and width of 1. To optimize, run through SVGOMG or the like.

Live app here

Development

Start local server:

clojure -A:fig -b dev -r

Create optimized build:

clj -m figwheel.main -O advanced -bo dev

mecca-pix's People

Contributors

bobbicodes avatar

Stargazers

Konstantinos avatar Mark Bliss avatar Kris Keillor avatar chan avatar Vlad Bokov avatar  avatar Ryan Sackenheim avatar Daniel Slutsky avatar Dan avatar  avatar Mikkel Gravgaard avatar  avatar Rod Gaither avatar Dmitri Sotnikov avatar Pawel Ceranka avatar

Watchers

James Cloos avatar  avatar

Forkers

neuroradiology

mecca-pix's Issues

Color quantization

An obvious problem is that raster images often contain a completely obscene amount of colors, and this isn't a problem until you want to represent it as a nice clean SVG.

I've already set the stage for this by representing the colors in 3-dimensional space (RGB) and sorting them according to Euclidean distance. All that should be left is some kind of nearest-neighbor heuristic.

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.