a rest-service wrapper for imageMagic
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
node_modules
Readme
server.js

Readme

nodeIM

is a Webservice around image-magic and the unix tool file

For image optimizing u need optipng and ittleutils-1.0.24


to Start server:

 node server.js


To convert:

curl --data-binary @image.png  http://127.0.0.1:8124/convert\?source=png\&target=jpg

The params are the same like the native convert programm, like "-quality value":

curl --data-binary @image.png  http://127.0.0.1:8124/convert\?source=png\&target=jpg\&quality=90

for mime Infos:

curl --data-binary @E-Book-Reader-Acer-LumiRead.png  http://127.0.0.1:8124/mime

for native "file" infos:

curl --data-binary @E-Book-Reader-Acer-LumiRead.png  http://127.0.0.1:8124/file