exiftool_vendored 11.54.0 → 11.55.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of exiftool_vendored might be problematic. Click here for more details.

@@ -17,7 +17,7 @@ package Image::ExifTool::Validate;
17
17
  use strict;
18
18
  use vars qw($VERSION %exifSpec);
19
19
 
20
- $VERSION = '1.15';
20
+ $VERSION = '1.16';
21
21
 
22
22
  use Image::ExifTool qw(:Utils);
23
23
  use Image::ExifTool::Exif;
@@ -206,7 +206,7 @@ my %validValue = (
206
206
  },
207
207
  GPS => {
208
208
  0x00 => 'defined $val and $val =~ /^\d \d \d \d$/', # GPSVersionID
209
- 0x1b => '$val =~ /^(GPS|CELLID|WLAN|MANUAL)$/', # GPSProcessingMethod
209
+ 0x1b => 'not defined $val or $val =~ /^(GPS|CELLID|WLAN|MANUAL)$/', # GPSProcessingMethod
210
210
  },
211
211
  InteropIFD => { }, # (needed for ExifVersion check)
212
212
  },
@@ -1323,7 +1323,7 @@ NoOverwrite: next if $isNew > 0;
1323
1323
  unless (defined $offsetData{$dataTag} or $dataTag eq 'LeicaTrailer') {
1324
1324
  # prefer tag from Composite table if it exists (otherwise
1325
1325
  # PreviewImage data would be taken from Extra tag)
1326
- my $compInfo = $Image::ExifTool::Composite{$dataTag};
1326
+ my $compInfo = Image::ExifTool::GetCompositeTagInfo($dataTag);
1327
1327
  $offsetData{$dataTag} = $et->GetNewValue($compInfo || $dataTag);
1328
1328
  my $err;
1329
1329
  if (defined $offsetData{$dataTag}) {
@@ -1774,7 +1774,7 @@ NoOverwrite: next if $isNew > 0;
1774
1774
  # - I'm going out of my way here to preserve data which is
1775
1775
  # invalidated anyway by our edits
1776
1776
  my $odd;
1777
- my $oddInfo = $Image::ExifTool::Composite{OriginalDecisionData};
1777
+ my $oddInfo = Image::ExifTool::GetCompositeTagInfo('OriginalDecisionData');
1778
1778
  if ($oddInfo and $$et{NEW_VALUE}{$oddInfo}) {
1779
1779
  $odd = $et->GetNewValue($dataTag);
1780
1780
  if ($verbose > 1) {
@@ -6617,7 +6617,7 @@ sub CopyBlock($$$)
6617
6617
  }
6618
6618
 
6619
6619
  #------------------------------------------------------------------------------
6620
- # copy image data from one file to another
6620
+ # Copy image data from one file to another
6621
6621
  # Inputs: 0) ExifTool object reference
6622
6622
  # 1) reference to list of image data [ position, size, pad bytes ]
6623
6623
  # 2) output file ref
@@ -6646,7 +6646,7 @@ sub CopyImageData($$$)
6646
6646
  }
6647
6647
 
6648
6648
  #------------------------------------------------------------------------------
6649
- # write to binary data block
6649
+ # Write to binary data block
6650
6650
  # Inputs: 0) ExifTool object ref, 1) source dirInfo ref, 2) tag table ref
6651
6651
  # Returns: Binary data block or undefined on error
6652
6652
  sub WriteBinaryData($$$)
@@ -6776,7 +6776,7 @@ sub WriteBinaryData($$$)
6776
6776
  $$previewInfo{IsShort} = 1 unless $format eq 'int32u';
6777
6777
  $$previewInfo{Absolute} = 1 if $$tagInfo{IsOffset} and $$tagInfo{IsOffset} eq '3';
6778
6778
  # get the value of the Composite::PreviewImage tag
6779
- $$previewInfo{Data} = $self->GetNewValue($Image::ExifTool::Composite{PreviewImage});
6779
+ $$previewInfo{Data} = $self->GetNewValue(GetCompositeTagInfo('PreviewImage'));
6780
6780
  unless (defined $$previewInfo{Data}) {
6781
6781
  if ($offset >= 0 and $offset + $size <= $$dirInfo{DataLen}) {
6782
6782
  $$previewInfo{Data} = substr(${$$dirInfo{DataPt}},$offset,$size);
@@ -49,7 +49,7 @@ use Image::ExifTool::Exif;
49
49
  use Image::ExifTool::GPS;
50
50
  require Exporter;
51
51
 
52
- $VERSION = '3.23';
52
+ $VERSION = '3.24';
53
53
  @ISA = qw(Exporter);
54
54
  @EXPORT_OK = qw(EscapeXML UnescapeXML);
55
55
 
@@ -101,6 +101,7 @@ my %xmpNS = (
101
101
  aux => 'http://ns.adobe.com/exif/1.0/aux/',
102
102
  album => 'http://ns.adobe.com/album/1.0/',
103
103
  cc => 'http://creativecommons.org/ns#', # changed 2007/12/21 - PH
104
+ crd => 'http://ns.adobe.com/camera-raw-defaults/1.0/',
104
105
  crs => 'http://ns.adobe.com/camera-raw-settings/1.0/',
105
106
  crss => 'http://ns.adobe.com/camera-raw-saved-settings/1.0/',
106
107
  dc => 'http://purl.org/dc/elements/1.1/',
@@ -561,6 +562,10 @@ my %sRetouchArea = (
561
562
  Name => 'photoshop',
562
563
  SubDirectory => { TagTable => 'Image::ExifTool::XMP::photoshop' },
563
564
  },
565
+ crd => {
566
+ Name => 'crd',
567
+ SubDirectory => { TagTable => 'Image::ExifTool::XMP::crd' },
568
+ },
564
569
  crs => {
565
570
  Name => 'crs',
566
571
  SubDirectory => { TagTable => 'Image::ExifTool::XMP::crs' },
@@ -1369,6 +1374,7 @@ my %sPantryItem = (
1369
1374
  Exposure2012 => { Writable => 'real' },
1370
1375
  Contrast2012 => { Writable => 'integer' },
1371
1376
  Highlights2012 => { Writable => 'integer' },
1377
+ Highlight2012 => { Writable => 'integer' }, # (written by Nikon software)
1372
1378
  Shadows2012 => { Writable => 'integer' },
1373
1379
  Whites2012 => { Writable => 'integer' },
1374
1380
  Blacks2012 => { Writable => 'integer' },
@@ -1464,6 +1470,7 @@ my %sPantryItem = (
1464
1470
  PerspectiveY => { Writable => 'real' },
1465
1471
  UprightFourSegmentsCount => { Writable => 'integer' },
1466
1472
  AutoTone => { Writable => 'boolean' },
1473
+ Texture => { Writable => 'integer' },
1467
1474
  );
1468
1475
 
1469
1476
  # Tiff namespace properties (tiff)
@@ -23,6 +23,8 @@ use strict;
23
23
  use Image::ExifTool qw(:Utils);
24
24
  use Image::ExifTool::XMP;
25
25
 
26
+ sub Init_crd($);
27
+
26
28
  #------------------------------------------------------------------------------
27
29
 
28
30
  # xmpDM structure definitions
@@ -75,6 +77,18 @@ my %sTimecode = (
75
77
  value => { Writable => 'integer', Notes => 'only in XMP 2008 spec; an error?' },
76
78
  );
77
79
 
80
+ # camera-raw defaults
81
+ %Image::ExifTool::XMP::crd = (
82
+ %xmpTableDefaults,
83
+ INIT_TABLE => \&Init_crd,
84
+ GROUPS => { 1 => 'XMP-crd', 2 => 'Image' },
85
+ NAMESPACE => 'crd',
86
+ AVOID => 1,
87
+ TABLE_DESC => 'Photoshop Camera Defaults namespace',
88
+ NOTES => 'Adobe Camera Raw Defaults tags.',
89
+ # (tags added dynamically when WRITE_PROC is called)
90
+ );
91
+
78
92
  # XMP Dynamic Media namespace properties (xmpDM)
79
93
  %Image::ExifTool::XMP::xmpDM = (
80
94
  %xmpTableDefaults,
@@ -1650,7 +1664,7 @@ my %sSubVersion = (
1650
1664
  %Image::ExifTool::XMP::GDepth = (
1651
1665
  GROUPS => { 0 => 'XMP', 1 => 'XMP-GDepth', 2 => 'Image' },
1652
1666
  NAMESPACE => 'GDepth',
1653
- AVOID => 1, # (too potential tag name conflicts)
1667
+ AVOID => 1, # (too many potential tag name conflicts)
1654
1668
  NOTES => q{
1655
1669
  Google depthmap information. See
1656
1670
  L<https://developers.google.com/depthmap-metadata/> for the specification.
@@ -1811,6 +1825,23 @@ my %sSubVersion = (
1811
1825
  NAMESPACE => undef, # variable namespace
1812
1826
  );
1813
1827
 
1828
+ #------------------------------------------------------------------------------
1829
+ # Generate crd tags
1830
+ # Inputs: 0) tag table ref
1831
+ sub Init_crd($)
1832
+ {
1833
+ my $tagTablePtr = shift;
1834
+ # import tags from CRS namespace
1835
+ my $crsTable = GetTagTable('Image::ExifTool::XMP::crs');
1836
+ my $tag;
1837
+ foreach $tag (Image::ExifTool::TagTableKeys($crsTable)) {
1838
+ my $crsInfo = $$crsTable{$tag};
1839
+ my $tagInfo = $$tagTablePtr{$tag} = { %$crsInfo };
1840
+ $$tagInfo{Groups} = { 0 => 'XMP', 1 => 'XMP-crd' , 2 => $$crsInfo{Groups}{2} } if $$crsInfo{Groups};
1841
+ }
1842
+ }
1843
+
1844
+
1814
1845
  1; #end
1815
1846
 
1816
1847
  __END__
@@ -1,6 +1,6 @@
1
1
  Summary: perl module for image data extraction
2
2
  Name: perl-Image-ExifTool
3
- Version: 11.54
3
+ Version: 11.55
4
4
  Release: 1
5
5
  License: Artistic/GPL
6
6
  Group: Development/Libraries/Perl
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ExiftoolVendored
4
- VERSION = Gem::Version.new('11.54.0')
4
+ VERSION = Gem::Version.new('11.55.0')
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: exiftool_vendored
3
3
  version: !ruby/object:Gem::Version
4
- version: 11.54.0
4
+ version: 11.55.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew McEachen
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-07-02 00:00:00.000000000 Z
12
+ date: 2019-07-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: exiftool