Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tiny clojure wrapper over im4java
Clojure
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src
target/stale
.gitignore
.lein-env
LICENSE
README.md
project.clj

README.md

Illusioniste

A (very) thin wrapper over im4java, a wrapper over ImageMagick's command-line utilities. This is literally nothing more than a small macro.

Usage

Add The following to your project.clj [illusioniste "1.0.1-SNAPSHOT"]

(ns example.core
  (:require [illusioniste]))

(illusioniste/transform-image image-byte-array
  (rotate 90.0)
  (crop 140 100)
  (resize 80 80)) ;; returns jpeg byte array rotated 90 degrees,
                  ;;   cropped to 140x100
                  ;;   and subsequently resized to 80x80

Todo

  • Some helpers to get images into and out of byte-arrays
  • Support more than simple convert calls (composite, etc.)

License

Copyright &copy 2011-2013 Ryan Crum, Justin Tirrell and Renaud Tircher. Distributed under the Eclipse Public License. See LICENSE.

Something went wrong with that request. Please try again.