Hi Michael,
Got some good results on img processing tests. I got image resizer working
nice, it was a resource path issue.
However after some side by side testing with graphicmagick, I found imgscalr
outputs files at a 30% to 50% larger file size. About 30% on larger dimensions,
50% on thumbnails.
So I've opted for graphicmagick as it processes faster, same quality, much
smaller static files and v elegant syntax, I've been using it in ruby and
coldfusion for years. One other thing is it bypasses java, does the buffering
internally.
If you have an image processing use case, hope that's helpful for anyone going
so far as a cdn to scale static assets. Here's a couple syntax examples:
;resize to 300 proportionally
(convert photofile
(-antialias)
(-resize 300 300)
(str (img-path) "/lg_" new-file-name))
; resize to 150 proportionally then crop to a 150 square
(convert photofile
(-antialias)
(-resize 150 150)
(-gravity "Center")
(-extent 100 100) photofile)
photofile is resource path and file name. I'll check into clojure-docs, see if
I can help out on the web dev section based on my experience last few weeks.
Best,
Pardeep.
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.