Thx Cedric! Indeed I am using ClojureJVM. Getting images from filesystem isn't a big deal. Of course javax.imageio does a good job here, like you said! Also I am not intersted (yet) in meta information of the images.
My concern about image IO was more about not having to transform back and forth data between differents types and formats during import, processing and export. Good to know that exif data is at hand though, thanks! On Tuesday, April 23, 2013 11:47:49 PM UTC+2, Cedric Greevey wrote: > > On Tue, Apr 23, 2013 at 2:54 PM, Nils Blum-Oeste > <nblum...@googlemail.com<javascript:> > > wrote: > >> Furthermore I am looking for a nice image import/export. This does not >> have to be the same library, but would be great if things work together >> nicely. >> > > If you're using ClojureJVM, at least, you have this already (and even the > capacity to add format plugins!). > > Check out javax.imageio. > > One plugin in particular you might want to get is the TIF plugin. It adds > both .tif image format support *and* the ability to extract exif metadata > from any format that supports it, including jpeg. It's handy if you want to > get the info that cameras put in jpegs they take, or the keywords, caption, > and rating that Windows users can give to jpegs using the default Windows > picture previewer. Sadly, there's no simple "getKeywords" function or > similar, though; you need to do a bit of hacking to retrieve particular > exif metadata fields, and a bit of Googling to find out what those are. On > the other hand, creating a wrapper library in Clojure to provide a much > nicer interface to the exif metadata might be worthwhile -- perhaps a > function to read the metadata from an image file and return a Clojure map > with meaningful keys and the corresponding values that were found in the > image, such as > > {:focal-length "3.50 mm" > :keywords ["tree" "pine" "white pine" "Pinus strobus" "Appalachia" > "Pennsylvania" "nature"] > :caption "White pine growing at 1780ft elevation in the central > Appalachia" > :date-taken <java.util.Date whatever>} > > -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com 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 clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.