source: project/wiki/eggref/4/exif @ 27084

Last change on this file since 27084 was 27084, checked in by Christian Kellermann, 9 years ago

exif: adjust egg history

File size: 2.9 KB
Line 
1[[tags: egg]]
2[[toc:]]
3
4== exif
5
6=== Introduction
7
8{{exif}} is a BSD licensed binding to the
9[[http://libexif.sf.net|libexif]] library. Please note that while this
10egg is BSD licensed the libexif lib is distributed under the LGPL.
11
12Currently only read support is implemented in this binding.
13
14=== Usage
15
16<enscript highlight=scheme>
17(require-extension exif)
18</enscript>
19
20
21=== Requirements
22
23[[foreigners]]
24
25=== Documentation
26
27==== tag-alist-from-file
28
29<procedure>(tag-alist-from-file FILENAME TAGLIST)</procedure>
30
31Reads in the EXIF data from the file defined by the FILENAME string
32and returns the values of the tags in TAGLIST as associated
33list. Nonexistant tags will have #f as return value.
34
35==== thumbnail->u8vector
36
37<procedure>(thumbnail->u8vector FILENAME)</procedure>
38
39Reads the thumbnail from FILENAME and returns it as u8vector or #f if
40there isn't one.
41
42==== Example
43
44<enscript highlight="scheme">
45#;1> (tag-alist-from-file "img_3942.jpg" '(model make date-time))
46((model . "Canon PowerShot G10") (make . "Canon") (date-time . "2010:08:20 20:38:18"))
47#;2> (thumbnail->u8vector "img_3942.jpg")
48#u8(255 216 255 219 0 132 0 9 6 6 8 6 5 9 ...
49</enscript>
50
51=== Author
52
53[[/users/christian kellermann|Christian Kellermann]]
54
55=== License
56
57 Copyright 2011 Christian Kellermann <ckeen@pestilenz.org>. All
58 rights reserved.
59
60 Redistribution and use in source and binary forms, with or without
61 modification, are permitted provided that the following conditions
62 are met:
63    1. Redistributions of source code must retain the above
64    copyright notice, this list of conditions and the following
65    disclaimer.
66    2. Redistributions in binary form must reproduce the above
67    copyright notice, this list of conditions and the following
68    disclaimer in the documentation and/or other materials provided
69    with the distribution.
70 THIS SOFTWARE IS PROVIDED BY CHRISTIAN KELLERMANN ``AS IS'' AND ANY
71 EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
72 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
73 PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL CHRISTIAN KELLERMANN OR
74 CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
75 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
76 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
77 USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
78 ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
79 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
80 OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
81 SUCH DAMAGE.
82 The views and conclusions contained in the software and
83 documentation are those of the authors and should not be
84 interpreted as representing official policies, either expressed or
85 implied, of Christian Kellermann.
86
87=== Version History
88
89; 0.1 : initial release
90; 0.2 : bugfix release
91; 0.3 : replace obsoleted null-pointer? predicate, no functionality changes
92; 0.5 : Add appropriate guard for the null-pointer? predicate
Note: See TracBrowser for help on using the repository browser.