Skip to content
This repository has been archived by the owner on May 31, 2019. It is now read-only.

Configuration

neatonk edited this page Apr 17, 2012 · 1 revision

Also see the API docs for 'im4clj.config.

im4clj targets ImageMagick by default but can be made to target Graphicksmagick instead.

To use GM momentarily, just wrap your code in the with-gm macro.

(use 'im4clj.core)
;nil
(with-gm (convert "image.jpg" (-crop 640 480 -1 50) "new-image.jpg"))
;nil

To make gm the new default just call use-gm!

(use-gm!)
;true

To make IM the default again call use-gm! with nil.

(use-gm! nil)
;nil

To check the current value of *use-gm* call use-gm.

(use-gm)
;nil
(use-gm!)
;true
(use-gm)
;true
Clone this wiki locally