0.0.4 • Published 3 years ago

css-img-manipulation v0.0.4

Weekly downloads
12
License
-
Repository
-
Last release
3 years ago

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 of.

dependencies

  • Google Chrome
  • ImageMagick

install

npm install -g css-img-manipulation

usage

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