((section 2 "Outdated egg!" (p "This is an egg for CHICKEN 4, the unsupported old release.  You're almost certainly looking for " (int-link "/eggref/5/exif" "the CHICKEN 5 version of this egg") ", if it exists.") (p "If it does not exist, there may be equivalent functionality provided by another egg; have a look at the " (link "https://wiki.call-cc.org/chicken-projects/egg-index-5.html" "egg index") ". Otherwise, please consider porting this egg to the current version of CHICKEN.") (tags "egg") (toc)) (section 2 "exif" (section 3 "Introduction" (p (tt "exif") " is a BSD licensed binding to the " (link "http://libexif.sf.net" "libexif") " library. Please note that while this egg is BSD licensed the libexif lib is distributed under the LGPL.") (p "Currently only read support is implemented in this binding.")) (section 3 "Usage" (highlight scheme "(require-extension exif)")) (section 3 "Requirements" (p (int-link "foreigners"))) (section 3 "Documentation" (section 4 "tag-alist-from-file" (def (sig (procedure "(tag-alist-from-file FILENAME #!optional TAGLIST)" (id tag-alist-from-file))) (p "Reads in the EXIF data from the file defined by the FILENAME string and returns the values of the tags in TAGLIST as associated list. If TAGFLIST is omitted a list of all known tags will be returned. Nonexistent tags will have #f as return value."))) (section 4 "thumbnail->u8vector" (def (sig (procedure "(thumbnail->u8vector FILENAME)" (id thumbnail->u8vector))) (p "Reads the thumbnail from FILENAME and returns it as u8vector or #f if there isn't one."))) (section 4 "Example" (highlight scheme "#;1> (tag-alist-from-file \"img_3942.jpg\" '(model make date-time))\n((model . \"Canon PowerShot G10\") (make . \"Canon\") (date-time . \"2010:08:20 20:38:18\"))\n#;2> (thumbnail->u8vector \"img_3942.jpg\")\n#u8(255 216 255 219 0 132 0 9 6 6 8 6 5 9 ..."))) (section 3 "Author" (p (int-link "/users/christian kellermann" "Christian Kellermann"))) (section 3 "License" (pre "Copyright 2011 Christian Kellermann <ckeen@pestilenz.org>. All\nrights reserved.") (pre "Redistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions\nare met:\n   1. Redistributions of source code must retain the above\n   copyright notice, this list of conditions and the following\n   disclaimer.\n   2. Redistributions in binary form must reproduce the above\n   copyright notice, this list of conditions and the following\n   disclaimer in the documentation and/or other materials provided\n   with the distribution.\nTHIS SOFTWARE IS PROVIDED BY CHRISTIAN KELLERMANN ``AS IS'' AND ANY\nEXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\nPURPOSE ARE DISCLAIMED. IN NO EVENT SHALL CHRISTIAN KELLERMANN OR\nCONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\nSPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\nLIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF\nUSE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\nON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\nOR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT\nOF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF\nSUCH DAMAGE.\nThe views and conclusions contained in the software and\ndocumentation are those of the authors and should not be\ninterpreted as representing official policies, either expressed or\nimplied, of Christian Kellermann.")) (section 3 "Version History" (dl (dt "0.1") (dd "initial release") (dt "0.2") (dd "bugfix release") (dt "0.3") (dd "replace obsoleted null-pointer? predicate, no functionality changes") (dt "0.5") (dd "Add appropriate guard for the null-pointer? predicate") (dt "0.6") (dd "Return a list of all known tags when none are given")) (p ": 0.7 : Correctly ref/unref entries, fixes a double free error found by mario-goulart"))))