sunlabs.brazil.exif
Class EXIFTemplate

java.lang.Object
  extended by sunlabs.brazil.template.Template
      extended by 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"


Field Summary
 
Fields inherited from class sunlabs.brazil.template.Template
debug
 
Constructor Summary
EXIFTemplate()
           
 
Method Summary
 void tag_exif(RewriteContext hr)
           
 
Methods inherited from class sunlabs.brazil.template.Template
done, init
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EXIFTemplate

public EXIFTemplate()
Method Detail

tag_exif

public void tag_exif(RewriteContext hr)

Version Kenai-svn-r24, Generated 08/18/09
Copyright (c) 2001-2009, Sun Microsystems.