mzucker / noteshrink

Convert scans of handwritten notes to beautiful, compact PDFs
https://mzucker.github.io/2016/09/20/noteshrink.html
MIT License
4.81k stars 351 forks source link

a CLI to automatize the image creation #27

Open antoninadert opened 6 years ago

antoninadert commented 6 years ago

I need to automatize images from the python and send them to a node.js app.

I would prefer to have a little script so I can plug it to a node command and automatize the process from the server.

Any clue how to make a CLI tool + documentation for this soft ?

antoninadert commented 6 years ago

Well an installer with all dependencies that would be multi platform would do as apparently it just works out of the box once we can run the py file from command line

andreadellacorte commented 6 years ago

I read you needed an installer so I tried to create one using Homebrew for MacOS as a test, but I couldn't get the Pillow dependency to be installed correctly:

https://github.com/andreadellacorte/homebrew-noteshrink/blob/master/noteshrink.rb

Not sure if this helps, but take a look. You can try it on Mac with:

brew install andreadellacorte/homebrew-noteshrink/noteshrink