Skip to content
/ purty Public

Clojure library for performing basic image operations - read, write, scale, crop

Notifications You must be signed in to change notification settings

jkk/purty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

purty

Clojure library to perform basic image operations - read, write, scale, crop.

Relies on the imgscalr Java library.

Usage

Leiningen:

[jkkramer/purty "0.1.0"]

REPL example:

(require '[jkkramer.purty :as purty])
(let [oolong (purty/read "http://jkkramer.com/oolong.jpg") ;or file, stream, etc
      avatar (purty/scale oolong :size 100 :fit :crop)]
  (purty/write thumb "/tmp/oolong_thumb.jpg" :quality 50))

TODO

License

Copyright © 2012 Justin Kramer

Distributed under the Eclipse Public License, the same as Clojure.

About

Clojure library for performing basic image operations - read, write, scale, crop

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published