Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kiaragrouwstra/css-img-manipulation

manipulate images by css
https://github.com/kiaragrouwstra/css-img-manipulation

Last synced: about 2 months ago
JSON representation

manipulate images by css

Awesome Lists containing this project

README

        

# css img manipulation

This is a small library I wrote to manipulate images using css.
My use-case for this was processing images with instagram filters, which I had found [css versions](https://una.im/CSSgram/) of.

### dependencies
- Google Chrome
- ImageMagick

### install
```bash
npm install -g css-img-manipulation
```

### usage
```bash
cd src/
# start headless chrome
google-chrome --headless --hide-scrollbars --remote-debugging-port=9222 --disable-gpu &
pid=$(echo $!)
# manipulate an image using a css filter
css-img-manipulation --css ./example/clarendon.css --cls clarendon --img ./example/cacti.jpg --out ./example/cacti-clarendon.jpg
# kill headless chrome
kill $pid
```