css-img-manipulation

0.0.4 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i css-img-manipulation

Weekly Downloads

1

Version

0.0.4

License

none

Unpacked Size

6.32 kB

Total Files

6

Last publish

Collaborators

  • tycho01