diff options
author | William Joye <wjoye@cfa.harvard.edu> | 2016-10-27 19:39:39 (GMT) |
---|---|---|
committer | William Joye <wjoye@cfa.harvard.edu> | 2016-10-27 19:39:39 (GMT) |
commit | ea28451286d3ea4a772fa174483f9a7a66bb1ab3 (patch) | |
tree | 6ee9d8a7848333a7ceeee3b13d492e40225f8b86 /tcllib/modules/exif/exif.man | |
parent | b5ca09bae0d6a1edce939eea03594dd56383f2c8 (diff) | |
parent | 7c621da28f07e449ad90c387344f07a453927569 (diff) | |
download | blt-ea28451286d3ea4a772fa174483f9a7a66bb1ab3.zip blt-ea28451286d3ea4a772fa174483f9a7a66bb1ab3.tar.gz blt-ea28451286d3ea4a772fa174483f9a7a66bb1ab3.tar.bz2 |
Merge commit '7c621da28f07e449ad90c387344f07a453927569' as 'tcllib'
Diffstat (limited to 'tcllib/modules/exif/exif.man')
-rw-r--r-- | tcllib/modules/exif/exif.man | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/tcllib/modules/exif/exif.man b/tcllib/modules/exif/exif.man new file mode 100644 index 0000000..62c6682 --- /dev/null +++ b/tcllib/modules/exif/exif.man @@ -0,0 +1,80 @@ +[manpage_begin exif n 1.1.2] +[keywords exif] +[keywords jpeg] +[keywords {maker note}] +[keywords tiff] +[moddesc {EXIF parsing}] +[titledesc {Tcl EXIF extracts and parses EXIF fields from digital images}] +[category {File formats}] +[require Tcl 8.2] +[require exif [opt 1.1.2]] +[description] +[para] + +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. + +[para] + +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. + +[section COMMANDS] + +[list_begin definitions] + +[call [cmd exif::analyze] [arg channel] [opt [arg thumbnail]]] + +[arg channel] should be an open file handle rewound to the start. It +does not need to be seekable. [arg 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. + +[para] + +If [arg thumbnail] is present and not the empty string it will be +interpreted as the name of a file, and the thumbnail image contained +in the exif data will be written into it. + +[call [cmd exif::analyzeFile] [arg filename] [opt [arg thumbnail]]] + +This is a file-based wrapper around [cmd exif::analyze]. Instead of +taking a stream it takes a [arg filename] and analyzes the contents of +the specified file. + +[call [cmd exif::fieldnames]] + +This returns a list of all possible field names. That is, the array +returned by [cmd exif::analyze] will not contain keys that are not +listed in the return from [cmd exif::fieldnames]. Of course, if +information is missing in the image file, [cmd 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. + +[para] + +N.B.: Read the implementation of [cmd exif::fieldnames] before +modifying the implementation of [cmd exif::analyze]. + +[list_end] + +[section COPYRIGHTS] + +(c) 2002 Darren New + +Hold harmless the author, and any lawful use is allowed. + +[section 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. + +[vset CATEGORY exif] +[include ../doctools2base/include/feedback.inc] +[manpage_end] |