18 Jul 2003 10:07:32 UTC
- Distribution: Image-IPTCInfo-TemplateFile
- Module version: 0.2
- Source (raw)
- Browse (raw)
- How to Contribute
- Testers (408 / 0 / 0)
- KwaliteeBus factor: 0
- 64.79% Coverage
- License: unknown
- Activity24 month
- Download (3.95KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
- METHOD add_to_Image_IPTC_Info
- AUTHOR AND COPYRIGHT
- SEE ALSO
Image::IPTCInfo::TemplateFile - Template files for IPTC IIM Text
This is version 0.2 - keywords and supplemental categories were not saved in the previous version.
Image::IPTCInfoby Josh Carter (email@example.com), this allows the loading of data from an IPTC template file, such as used by FotoStation(TM).
Pass an array, hash reference, array reference, or list.
The IPTC text content can be obtained from a (clsoed) file, an file handle, or can be passe directly to the constructor.
- TO INSTANTIATE DIRECTLY
To load IPTC data "manually", supply to the constructor any or all of the datafields whose names are defined as in the parent module (Image::IPTCInfo). Note that both the 'list' items "supplemental category" (sic) and "keywords" can be supplied as either a comma-delimited list or array references.
Image::IPTCInfo::TemplateFile->new ( 'caption/abstract' => 'The caption", 'keywords' => 'keyword1,keyword2, keywordN', )
- TO INSTANTIATE FROM A TEMPLATE FILE
filepathparamter, the path to a template file to open. This file should be just the first IPTC code: record 2, dataset 0, such as generated by this module or FotoStation(TM).
- TO INSTANTIATE FROM A FILE HANDLE
Supply the paramter
FILEas an open filehandle, from which we'll load, and then close. The file should already be at the start of the first IPTC code: record 2, dataset 0.
When called, the constructor parses the template, filling a hash with the fields defined in
Image::IPTCInfo, a reference to which becomes this object.
If no info is found, the object will be empty.
Transfers the data from the calling object to an
Image::IPTCInfoobject supplied in the only paramter.
Returns true or
undefif no object was supplied.
Copyright (C) 2002 Josh Carter (firstname.lastname@example.org) Copyright (C) 2003 Lee Goddard (email@example.com)
Module Install Instructions
To install Image::IPTCInfo::TemplateFile, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Image::IPTCInfo::TemplateFile
For more information on module installation, please visit the detailed CPAN module installation guide.