Image-ExifTool

 view release on metacpan or  search on metacpan

Changes  view on Meta::CPAN

Feb. 2, 2007 - Version 6.74

  - Added support for chained SubIFD's in TIFF images
  - Updated GeoTiff support for new definitions in libgeotiff-1.2.3
  - Fixed problem when rewriting unknown records in Adobe DNGPrivateData
  - Fixed bug introduced in 6.47 that could prevent Photoshop EXIF CameraRAW
    tags from being extracted properly

Jan. 31, 2007 - Version 6.73

  - Added read support for meta information in HTML and XHTML documents
  - Added ability to write certain EXIF tags (eg. UserComment) as Unicode
  - Added character set translation for XMP information; the -L option now works
    for all common meta information formats! (see updated FAQ #10 for details)
  - Added a few more XMP-microsoft tags (thanks Kees Moerman)
  - Decode FirmwareRevision found in some Canon PowerShot models
  - Preserve date/time tags that exist in the wrong EXIF IFD when shifting times
  - Fixed bug which could result in an incorrect value for the Directory tag
  - Fixed problem parsing XMP with BOM introduced in 6.71

Jan. 25, 2007 - Version 6.72

html/Shift.html  view on Meta::CPAN

<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>ExifTool Date/Time Shift Module</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rev="made" href="mailto:root@osx219.apple.com" />
</head>

<body style="background-color: white">
<table border="0" width="100%" cellspacing="0" cellpadding="3">
<tr><td class="_podblock_" style="background-color: #cccccc" valign="middle">

html/TagNames/HTML.html  view on Meta::CPAN

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!-- (this file generated automatically by Image::ExifTool::BuildTagLookup) -->
<head>
<title>HTML Tags</title>
<link rel=stylesheet type='text/css' href='style.css' title='Style'>
</head>
<body>
<h2 class=top>HTML Tags</h2>
<p>Meta information extracted from the header of HTML and XHTML files.  This is
a mix of information found in the <code>META</code> elements, <code>XML</code> element, and the
<code>TITLE</code> element.</p>
<blockquote>
<table class=frame><tr><td>
<table class=inner cellspacing=1>
<tr class=h><th>Tag&nbsp;ID</th><th>Tag Name</th>
<th>Writable</th><th>Values / <span class=n>Notes</span></th></tr>
<tr>
<td>'abstract'</td>
<td>Abstract</td>

html/ancient_history.html  view on Meta::CPAN

<ul>
<li>Added support for chained SubIFD's in TIFF images
<li>Updated GeoTiff support for new definitions in libgeotiff-1.2.3
<li>Fixed problem when rewriting unknown records in Adobe DNGPrivateData
<li>Fixed bug introduced in 6.47 that could prevent Photoshop EXIF CameraRAW
    tags from being extracted properly
</ul>

<a name='v6.73'><b>Jan. 31, 2007 - Version 6.73</b></a>
<ul>
<li>Added read support for meta information in HTML and XHTML documents
<li>Added ability to write certain EXIF tags (eg. UserComment) as Unicode
<li>Added character set translation for XMP information; the -L option now works
    for all common meta information formats! (see updated <a href="faq.html#Q10">FAQ #10</a> for details)
<li>Added a few more XMP-microsoft tags (thanks Kees Moerman)
<li>Decode FirmwareRevision found in some Canon PowerShot models
<li>Preserve date/time tags that exist in the wrong EXIF IFD when shifting times
<li>Fixed bug which could result in an incorrect value for the Directory tag
<li>Fixed problem parsing XMP with BOM introduced in 6.71
</ul>

html/exiftool_pod.html  view on Meta::CPAN

<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>exiftool Application Documentation</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rev="made" href="mailto:root@osx219.apple.com" />
<style type="text/css"><!-- code { color: #800 } --></style></head>

<body style="background-color: white">
<table border="0" width="100%" cellspacing="0" cellpadding="3">
<tr><td class="_podblock_" style="background-color: #cccccc" valign="middle">

lib/Image/ExifTool/HTML.pm  view on Meta::CPAN

    'icirc'  => 238,  'ndash'  => 8211,
    'iuml'   => 239,  'mdash'  => 8212,
);
my %entityName; # look up entity names by number (built as necessary)

# HTML info
# (tag ID's are case insensitive and must be all lower case in tables)
%Image::ExifTool::HTML::Main = (
    GROUPS => { 2 => 'Document' },
    NOTES => q{
        Meta information extracted from the header of HTML and XHTML files.  This is
        a mix of information found in the C<META> elements, C<XML> element, and the
        C<TITLE> element.
    },
    dc => {
        Name => 'DC',
        SubDirectory => { TagTable => 'Image::ExifTool::HTML::dc' },
    },
    ncc => {
        Name => 'NCC',
        SubDirectory => { TagTable => 'Image::ExifTool::HTML::ncc' },

lib/Image/ExifTool/HTML.pm  view on Meta::CPAN

#------------------------------------------------------------------------------
# Extract information from a HTML file
# Inputs: 0) ExifTool object reference, 1) DirInfo reference
# Returns: 1 on success, 0 if this wasn't a valid HTML file
sub ProcessHTML($$)
{
    my ($et, $dirInfo) = @_;
    my $raf = $$dirInfo{RAF};
    my $buff;

    # validate HTML or XHTML file
    $raf->Read($buff, 256) or return 0;
    $buff =~ /^(\xef\xbb\xbf)?\s*<(!DOCTYPE\s+HTML|HTML|\?xml)/i or return 0;
    $buff =~ /<(!DOCTYPE\s+)?HTML/i or return 0 if $2 eq '?xml';
    $et->SetFileType();

    $raf->Seek(0,0) or $et->Warn('Seek error'), return 1;

    local $/ = Image::ExifTool::PostScript::GetInputRecordSeparator($raf);
    $/ or $et->Warn('Invalid HTML data'), return 1;

lib/Image/ExifTool/HTML.pm  view on Meta::CPAN

    }
    return 1 unless defined $doc;

    # process all elements in header
    my $tagTablePtr = GetTagTable('Image::ExifTool::HTML::Main');
    for (;;) {
        last unless $doc =~ m{<([\w:.-]+)(.*?)>}sg;
        my ($tagName, $attrs) = ($1, $2);
        my $tag = lc($tagName);
        my ($val, $grp);
        if ($attrs =~ m{/$}) {  # self-contained XHTML tags end in '/>'
            $val = '';
        } else {
            # look for element close
            my $pos = pos($doc);
            my $close = "</$tagName>";
            # the following doesn't work on Solaris Perl 5.6.1 due to Perl bug:
            # if ($doc =~ m{(.*?)</$tagName>}sg) {
            #     $val = $1;
            if ($doc =~ m{$close}sg) {
                $val = substr($doc, $pos, pos($doc)-$pos-length($close));

lib/Image/ExifTool/TagNames.pod  view on Meta::CPAN

  'ImageUuid'           UUID                    no
  'Keywords'            Keywords                no
  'Languages'           Languages               no
  'License'             License                 no
  'OriginalCreationTime' DateTimeOriginal       no
  'RelatedResources'    RelatedResources        no
  'Title'               Title                   no

=head2 HTML Tags

Meta information extracted from the header of HTML and XHTML files.  This is
a mix of information found in the C<META> elements, C<XML> element, and the
C<TITLE> element.

  Tag ID                      Tag Name          Writable
  ------                      --------          --------
  'abstract'                  Abstract          no
  'author'                    Author            no
  'classification'            Classification    no
  'content-language'          ContentLanguage   no
  'copyright'                 Copyright         no

t/images/HTML.html  view on Meta::CPAN

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>ExifTool HTML Test</title>
  <meta http-equiv="Content-type" content='text/html; charset="iso-8859-1"' />
  <!-- Note: The HTML standard uses a '.' namespace separator (ie. "dc.title"),
       but a ':' is used in the Daisy specification, as below --> 
  <meta name="dc:title" content="ExifTool HTML Test" />
  <meta name="dc:creator" content="Phil Harvey" />
  <meta name="dc:creator" content="Another Creator" />



( run in 1.418 second using v1.01-cache-2.11-cpan-49f99fa48dc )