File::Sticker::Writer::Gif - write and standardize meta-data from GIF file
version 1.0603
use File::Sticker::Writer::Gif; my $obj = File::Sticker::Writer::Gif->new(%args); my %meta = $obj->write_meta(%args);
This will write meta-data from EXIF files, and standardize it to a common nomenclature, such as "tags" for things called tags, or Keywords or Subject etc.
Used for debugging info
The priority of this writer. Writers with higher priority get tried first.
If this writer can be used for the given file, then this returns true. File must be a GIF image.
Returns the fields which this writer knows about. This writer has no limitations.
my $known_fields = $writer->known_fields();
Returns the fields which this writer knows about, which can't be overwritten, but are allowed to be "wanted" fields. Things like file-size etc.
my $readonly_fields = $writer->readonly_fields();
Completely remove the given field. This does no checking.
$writer->delete_field_from_file(filename=>$filename,field=>$field);
Overwrite the existing meta-data with that given.
(This supercedes the parent method because we can do it more efficiently this way)
$writer->replace_all_meta(filename=>$filename,meta=>\%meta);
Overwrite the given field. This does no checking.
$writer->replace_one_field(filename=>$filename,field=>$field,value=>$value);
Private interface.
Quick non-checking loading of the meta-data. Does not standardize any fields.
my $meta = $self->_load_meta($filename);
Write the meta-data as YAML data in the Comment field. This overwrites whatever is there, it does not check. This saves multi-value comma-separated fields as arrays.
$self->_write_meta(meta=>\%meta,filename=>$filename);
Please report any bugs or feature requests to the author.
To install File::Sticker, copy and paste the appropriate command in to your terminal.
cpanm
cpanm File::Sticker
CPAN shell
perl -MCPAN -e shell install File::Sticker
For more information on module installation, please visit the detailed CPAN module installation guide.