Image::MetaData::JPEG
Edit Page
Report
Scan day: 03 March 2014 UTC
-580
Virus safety - good
Description: CPAN module for reading and writing JPEG metadata. Includes documentation and examples.
Image::MetaData::JPEG - search.cpan.org Module Version: 0.15 Latest Release: Image::MetaData::JPEG - Perl extension for showing/modifying JPEG (meta)data. use Image::MetaData::JPEG; # Create a new JPEG file structure object my $image = new Image::MetaData::JPEG('somepicture.jpg'); die 'Error: ' . Image::MetaData::JPEG::Error() unless $image; # Get a list of references to comment segments my @segments = $image->get_segments('COM', 'INDEXES'); # Get the JPEG picture dimensions my ($dim_x, $dim_y) = $image->get_dimensions(); # Show all JPEG segments and their content print $image->get_description(); # Retrieve a specific value from Exif meta-data my $image_data = $image->get_Exif_data('IMAGE_DATA', 'TEXTUAL'); print $image_data->{DateTimeOriginal}->[0], "\n"; # Modify the DateTime tag for the main image $image->set_Exif_data({'DateTime' => '1994:07:23 12:14:51'}, 'IMAGE_DATA', 'ADD'); # Delete all meta-data segments (please, don't) $image->drop_segments('METADATA'); # Rewrite file to disk after your modifications $image->save('new_file_name.jpg'); # ... and a lot more methods for viewing/modifying meta-data, which # are accessed through the $file or $segments[$index] references.
Size: 1440 chars
Contact Information
Email: —
Phone&Fax: —
Address: —
Extended: —
WEBSITE Info
| Page title: | Image::MetaData::JPEG - search.cpan.org |
| Keywords: | |
| Description: | |
| IP-address: | 199.15.176.161 |
