https://github.com/bobbicodes/mecca-pix
Convert raster images to SVG in Clojurescript
https://github.com/bobbicodes/mecca-pix
Last synced: about 1 year ago
JSON representation
Convert raster images to SVG in Clojurescript
- Host: GitHub
- URL: https://github.com/bobbicodes/mecca-pix
- Owner: bobbicodes
- Created: 2019-11-13T02:13:50.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T18:16:23.000Z (over 3 years ago)
- Last Synced: 2025-04-14T04:09:39.004Z (about 1 year ago)
- Language: JavaScript
- Homepage: https://bobbicodes.github.io/mecca-pix/
- Size: 14.6 MB
- Stars: 15
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://codepen.io/shshaw/pen/XbxvNj), which is itself inspired by [px2svg](https://github.com/meyerweb/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](https://jakearchibald.github.io/svgomg/) or the like.
[Live app here](https://BTowersCoding.github.io/mecca-pix/)
## Development
Start local server:
```bash
clojure -A:fig -b dev -r
```
Create optimized build:
```bash
clj -m figwheel.main -O advanced -bo dev
```