Palm::ZirePhoto (3)
Leading comments
Automatically generated by Pod::Man 2.28 (Pod::Simple 3.29) Standard preamble: ========================================================================
NAME
Palm::ZirePhoto - Handler for Palm Zire71 Photo thumbnail databaseVERSION
This document describes version 1.400 of Palm::ZirePhoto, released March 14, 2015 as part of Palm version 1.400.SYNOPSIS
use Palm::ZirePhoto;
DESCRIPTION
The Zire71This database is currently only capable of reading.
AppInfo block
The AppInfo block begins with standard category support. See Palm::StdAppInfo for details.Records
Records may contain no data fields. This occurs when the record has been marked deleted on the Palm, presumably in order to save space (Photo has no provision for archiving when deleting and the separate database storage for the actual images would make it pointless anyways).
$record = $pdb->{records}[N] $record->{'width'} $record->{'height'} $record->{'size'}
The actual
$record->{'thumb'}
The thumbnail is a very small (max size approx 84x84)
$record->{'name'}
Image name. Appending ".jpg" to this will give the database name of the actual image data.
$record->{'time1'} $record->{'time2'}
Unix epoch time of when the image was last modified ("time1") and when it was created ("time2").
Photo Databases
Actual photos are stored in separate databases. Each record is preceded by an 8 byte header that describes it a) as a data block (
use Palm::Raw; my $pdb = new Palm::PDB; $pdb->Load( "image.jpg.pdb" ); open F, ">image.jpg"; for( @{ $pdb->{records} } ) { print F substr($_->{'data'}, 8); } close F;
Notes are stored at the end of the
METHODS
Handling Palm photos can be a bit complicated. Some helper methods are exported to make some special cases a bit easier.ParseNote
my $photo = read_jpeg_file( "image.jpg" ); my $note = Palm::ZirePhoto::ParseNote($photo); print "Note: $note" if defined $note;
The Palm photo application stores user notes at the end of the
ParseAlbum
my $album = slurp("/DCIM/Unfiled/Album.db"); my @records = Palm::ZirePhoto::ParseAlbum( $album ); print $_->{name},"\n" for( @records );
Photos on memory cards are stored in subdirectories of "/DCIM". The meta-data for these images are stored in "Album.db" files under each category directory. This method will parse out the meta-data into an array of records similar to those returned by "ParseRecord". Thumbnail information, however, is not available.
SEE ALSO
Palm::PDBPalm::StdAppInfo
CONFIGURATION AND ENVIRONMENT
Palm::ZirePhoto requires no configuration files or environment variables.INCOMPATIBILITIES
None reported.BUGS AND LIMITATIONS
No bugs have been reported.AUTHORS
Alessandro Zummo "<a.zummo AT towertech.it>"Currently maintained by Christopher J. Madsen "<perl AT cjmweb.net>"
Please report any bugs or feature requests to "<bug-Palm AT rt.cpan.org>" or through the web interface at <rt.cpan.org/Public/Bug/Report.html?Queue=Palm>.
You can follow or contribute to p5-Palm's development at <github.com/madsen/p5-Palm>.
COPYRIGHT AND LICENSE
This software is copyright (c) 2003 by Andrew Arensburger & Alessandro Zummo.This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
DISCLAIMER OF WARRANTY