sunlabs.brazil.exif
Class EXIFTemplate
java.lang.Object
sunlabs.brazil.template.Template
sunlabs.brazil.exif.EXIFTemplate (view source)
- All Implemented Interfaces:
- TemplateInterface
public class EXIFTemplate
- extends Template
Template for extracting EXIF data out of JPEG image files.
This uses the EXIF library at:
http://www.drewnoakes.com/code/exif/
. It has been tested
with version 2.3.1.
Attributes:
- file
-
The name of the file to analyze and extract meta information for.
If "file" starts with "/" it is resolved relative to the document
root. Otherwise it is resolved relative to the directory implied
by the URL, unless overridden by "DirectoryName".
(This is probably not the proper behavior).
- directoryName
-
Specify the directory to find the "file" in. Defaults to the
directory implied by the URL, and is always relative to the document root.
- prepend
-
All the meta properties extracted from the file are
placed in the request properties as:
prepend.directory.property
where "prepend" defaults to the template prefix, and "directory" and
"property" are extracted from the file. Errors (if any) are reported
as prepend.error
- thumb
-
The name of a file to write the thumbnail to, if any. Must not already
exist.
- directoryThumb
-
The directory for the thumbnail. See "directoryName"
Fields inherited from class sunlabs.brazil.template.Template |
debug |
EXIFTemplate
public EXIFTemplate()
tag_exif
public void tag_exif(RewriteContext hr)