1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280
|
The EXIF documentation file D. New
February 12, 2002
The EXIF Package
Abstract
Tcl EXIF extracts and parses EXIF fields from digital images.
Table of Contents
1. Synopsis . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
2. Details . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
3. Copyrights . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
4. Acknowledgements . . . . . . . . . . . . . . . . . . . . . . . . 5
New [Page 1]
EXIF The EXIF Package February 2002
1. Synopsis
package provide exif 1.0
The EXIF package is a recoding of Chris Breeze's Perl package to do
the same thing. This version accepts a channel as input and returns
a serialized array with all the recognised fields parsed out.
There is also a function to obtain a list of all possible field names
that might be present, which is useful in building GUIs that present
such information.
New [Page 2]
EXIF The EXIF Package February 2002
2. Details
array set answer [exif::analyze $channel]
$channel should be an open file handle rewound to the start. It does
not need to be seekable. $channel will be set to binary mode and is
left wherever it happens to stop being parsed, usually at the end of
the file or the start of the image data. You must open and close the
stream yourself. If no error is thrown, the return value is a
serialized array with informative English text about what was found
in the EXIF block. Failure during parsing or I/O throw errors.
set names [exif::fieldnames]
This returns a list of all possible field names. That is, the array
returned by exif::analyze will not contain keys that are not listed
in the return from exif::fieldnames. Of course, if information is
missing in the image file, exif::analyze may not return all the
fields listed in the return from exif::fieldnames. This function is
expected to be primarily useful for building GUIs to display results.
N.B.: Read the implementation of exif::fieldnames before modifying
the implementation of exif::analyze.
New [Page 3]
EXIF The EXIF Package February 2002
3. Copyrights
(c) 2002 Darren New
Hold harmless the author, and any lawful use is allowed.
New [Page 4]
EXIF The EXIF Package February 2002
4. Acknowledgements
This code is a direct translation of version 1.3 of exif.pl by Chris
Breeze. See the source for full headers, references, etc.
New [Page 5]
|