im4clj
is incomplete and is not currently under active development.
I personally, reccomend using a generic shell scripting tool like https://github.com/Raynes/conch instead.
However, im4clj
does provide some additional niceties like (inline documentation) and will remain here for that purpose.
ImageMagick/GraphicsMagick commandline wrapper for Clojure.
See the im4clj wiki and the im4clj API docs for more detailed information.
Crop an image...
user=> (convert "path/to/image.jpg" (-resize 640 480) "path/to/new-image.jpg")
nil
Get documentation...
user=> (doc -resize)
-------------------------
im4clj.core/-resize
([width height] [width height special])
resize an image
nil
Install ImageMagick or GraphicsMagick.
Add the following dependency to your project.clj
file:
[im4clj "0.0.1"]
Copyright (C) deeperbydesign, inc 2012.
Distributed under the Eclipse Public License, the same as Clojure.
Test images obtained from NASA's website are public domain and not subject to the above copyright notice.