exiftool-vendored.exe 13.29.0 → 13.31.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/bin/exiftool.exe +0 -0
  2. package/bin/exiftool_files/exiftool.pl +6 -8
  3. package/bin/exiftool_files/lib/Image/ExifTool/BuildTagLookup.pm +1 -1
  4. package/bin/exiftool_files/lib/Image/ExifTool/Canon.pm +8 -3
  5. package/bin/exiftool_files/lib/Image/ExifTool/Exif.pm +5 -2
  6. package/bin/exiftool_files/lib/Image/ExifTool/FujiFilm.pm +5 -1
  7. package/bin/exiftool_files/lib/Image/ExifTool/Geolocation.dat +0 -0
  8. package/bin/exiftool_files/lib/Image/ExifTool/GoPro.pm +10 -3
  9. package/bin/exiftool_files/lib/Image/ExifTool/LNK.pm +21 -3
  10. package/bin/exiftool_files/lib/Image/ExifTool/Lang/de.pm +2 -1
  11. package/bin/exiftool_files/lib/Image/ExifTool/Lang/fr.pm +2 -1
  12. package/bin/exiftool_files/lib/Image/ExifTool/LigoGPS.pm +15 -7
  13. package/bin/exiftool_files/lib/Image/ExifTool/MakerNotes.pm +3 -3
  14. package/bin/exiftool_files/lib/Image/ExifTool/Nikon.pm +10 -3
  15. package/bin/exiftool_files/lib/Image/ExifTool/Olympus.pm +5 -1
  16. package/bin/exiftool_files/lib/Image/ExifTool/PDF.pm +1 -0
  17. package/bin/exiftool_files/lib/Image/ExifTool/Panasonic.pm +1 -1
  18. package/bin/exiftool_files/lib/Image/ExifTool/Parrot.pm +1 -1
  19. package/bin/exiftool_files/lib/Image/ExifTool/Pentax.pm +56 -14
  20. package/bin/exiftool_files/lib/Image/ExifTool/Plot.pm +2 -3
  21. package/bin/exiftool_files/lib/Image/ExifTool/QuickTime.pm +23 -3
  22. package/bin/exiftool_files/lib/Image/ExifTool/QuickTimeStream.pl +51 -17
  23. package/bin/exiftool_files/lib/Image/ExifTool/Sigma.pm +30 -4
  24. package/bin/exiftool_files/lib/Image/ExifTool/Sony.pm +3 -3
  25. package/bin/exiftool_files/lib/Image/ExifTool/TagLookup.pm +3738 -3729
  26. package/bin/exiftool_files/lib/Image/ExifTool/TagNames.pod +27 -9
  27. package/bin/exiftool_files/lib/Image/ExifTool/WritePDF.pl +1 -0
  28. package/bin/exiftool_files/lib/Image/ExifTool/Writer.pl +128 -129
  29. package/bin/exiftool_files/lib/Image/ExifTool.pm +11 -8
  30. package/bin/exiftool_files/windows_exiftool.txt +22 -14
  31. package/package.json +10 -5
package/bin/exiftool.exe CHANGED
Binary file
@@ -11,7 +11,7 @@ use strict;
11
11
  use warnings;
12
12
  require 5.004;
13
13
 
14
- my $version = '13.29';
14
+ my $version = '13.31';
15
15
 
16
16
  $^W = 1; # enable global warnings
17
17
 
@@ -26,9 +26,9 @@ BEGIN {
26
26
  # add lib directory at start of include path
27
27
  unshift @INC, ($0 =~ /(.*)[\\\/]/) ? "$1/lib" : './lib';
28
28
  # load or disable config file if specified
29
- if (@ARGV and lc($ARGV[0]) eq '-config') {
29
+ while (@ARGV and lc($ARGV[0]) eq '-config') {
30
30
  shift;
31
- $Image::ExifTool::configFile = shift;
31
+ push @Image::ExifTool::configFiles, shift;
32
32
  }
33
33
  }
34
34
  use Image::ExifTool qw{:Public};
@@ -1409,8 +1409,7 @@ for (;;) {
1409
1409
  # add geotag/geosync/geolocate commands first
1410
1410
  unshift @newValues, pop @newValues;
1411
1411
  if (lc $2 eq 'geotag' and (not defined $addGeotime or $addGeotime) and length $val) {
1412
- $addGeotime = [ ($1 || '') . 'Geotime<DateTimeOriginal#',
1413
- ($1 || '') . 'Geotime<SubSecDateTimeOriginal#' ];
1412
+ $addGeotime = ($1 || '') . q[Geotime<${DateTimeOriginal#;$_=$self->GetValue('SubSecDateTimeOriginal','ValueConv') || $_}];
1414
1413
  }
1415
1414
  }
1416
1415
  }
@@ -1698,9 +1697,8 @@ if (@newValues) {
1698
1697
  # assume -geotime value if -geotag specified without -geotime
1699
1698
  if ($addGeotime) {
1700
1699
  AddSetTagsFile($setTagsFile = '@') unless $setTagsFile and $setTagsFile eq '@';
1701
- push @{$setTags{$setTagsFile}}, @$addGeotime;
1702
- my @a = map qq("-$_"), @$addGeotime;
1703
- $verbose and print $vout 'Arguments ',join(' and ', @a)," are assumed\n";
1700
+ push @{$setTags{$setTagsFile}}, $addGeotime;
1701
+ $verbose and print $vout qq(Using default "-$addGeotime"\n);
1704
1702
  }
1705
1703
  my %setTagsIndex;
1706
1704
  # add/delete option lookup
@@ -995,7 +995,7 @@ TagID: foreach $tagID (@keys) {
995
995
  if ($format and $format =~ /\$val\{/ and
996
996
  ($$tagInfo{Writable} or not defined $$tagInfo{Writable}))
997
997
  {
998
- warn "Warning: \$var{} used in Format of writable tag - $short $name\n"
998
+ warn "Warning: \$val{} used in Format of writable tag - $short $name\n"
999
999
  }
1000
1000
  }
1001
1001
  if ($$tagInfo{Hidden}) {
@@ -88,7 +88,7 @@ sub ProcessCTMD($$$);
88
88
  sub ProcessExifInfo($$$);
89
89
  sub SwapWords($);
90
90
 
91
- $VERSION = '4.90';
91
+ $VERSION = '4.92';
92
92
 
93
93
  # Note: Removed 'USM' from 'L' lenses since it is redundant - PH
94
94
  # (or is it? Ref 32 shows 5 non-USM L-type lenses)
@@ -636,8 +636,10 @@ $VERSION = '4.90';
636
636
  '61182.58' => 'Canon RF 70-200mm F2.8 L IS USM Z + RF1.4x', #42
637
637
  '61182.59' => 'Canon RF 70-200mm F2.8 L IS USM Z + RF2x', #42
638
638
  '61182.60' => 'Canon RF 16-28mm F2.8 IS STM', #42
639
- '61182.61' => 'Canon RF 50mm F1.4 L VCM', #42
640
- '61182.62' => 'Canon RF 24mm F1.4 L VCM', #42
639
+ '61182.61' => 'Canon RF-S 14-30mm F4-6.3 IS STM PZ', #42
640
+ '61182.62' => 'Canon RF 50mm F1.4 L VCM', #42
641
+ '61182.63' => 'Canon RF 24mm F1.4 L VCM', #42
642
+ '61182.64' => 'Canon RF 20mm F1.4 L VCM', #42
641
643
  65535 => 'n/a',
642
644
  );
643
645
 
@@ -1005,6 +1007,7 @@ $VERSION = '4.90';
1005
1007
  0x80000495 => 'EOS R1', #PH
1006
1008
  0x80000496 => 'R5 Mark II', #forum16406
1007
1009
  0x80000498 => 'EOS R100', #25
1010
+ 0x80000516 => 'EOS R50 V', #42
1008
1011
  0x80000520 => 'EOS D2000C', #IB
1009
1012
  0x80000560 => 'EOS D6000C', #PH (guess)
1010
1013
  );
@@ -7031,8 +7034,10 @@ my %ciMaxFocal = (
7031
7034
  320 => 'Canon RF 70-200mm F2.8 L IS USM Z + RF1.4x', #42
7032
7035
  321 => 'Canon RF 70-200mm F2.8 L IS USM Z + RF2x', #42
7033
7036
  323 => 'Canon RF 16-28mm F2.8 IS STM', #42
7037
+ 324 => 'Canon RF-S 14-30mm F4-6.3 IS STM PZ', #42
7034
7038
  325 => 'Canon RF 50mm F1.4 L VCM', #42
7035
7039
  326 => 'Canon RF 24mm F1.4 L VCM', #42
7040
+ 327 => 'Canon RF 20mm F1.4 L VCM', #42
7036
7041
  # Note: add new RF lenses to %canonLensTypes with ID 61182
7037
7042
  },
7038
7043
  },
@@ -57,7 +57,7 @@ use vars qw($VERSION $AUTOLOAD @formatSize @formatName %formatNumber %intFormat
57
57
  use Image::ExifTool qw(:DataAccess :Utils);
58
58
  use Image::ExifTool::MakerNotes;
59
59
 
60
- $VERSION = '4.56';
60
+ $VERSION = '4.58';
61
61
 
62
62
  sub ProcessExif($$$);
63
63
  sub WriteExif($$$);
@@ -2081,7 +2081,7 @@ my %opcodeInfo = (
2081
2081
  0x8822 => {
2082
2082
  Name => 'ExposureProgram',
2083
2083
  Groups => { 2 => 'Camera' },
2084
- Notes => 'the value of 9 is not standard EXIF, but is used by the Canon EOS 7D',
2084
+ Notes => 'the value of 9 is not standard EXIF, but is used by some Canon models',
2085
2085
  Writable => 'int16u',
2086
2086
  PrintConv => {
2087
2087
  0 => 'Not Defined',
@@ -4350,6 +4350,7 @@ my %opcodeInfo = (
4350
4350
  Writable => 'undef',
4351
4351
  WriteGroup => 'IFD0',
4352
4352
  Protected => 1,
4353
+ Binary => 1,
4353
4354
  },
4354
4355
  0xcd40 => { # DNG 1.7
4355
4356
  Name => 'ProfileGainTableMap2',
@@ -5804,6 +5805,8 @@ sub PrintLensID($$@)
5804
5805
  }
5805
5806
  if ($$et{Make} eq 'SONY') {
5806
5807
  if ($lensType eq 65535) {
5808
+ # patch for manual lens (forum17379)
5809
+ return $$printConv{$lensType} if $$printConv{$lensType} and not $focalLength and $maxAperture == 1;
5807
5810
  # handle Sony E-type lenses when LensType2 isn't valid (NEX/ILCE models only)
5808
5811
  if ($$et{Model} =~ /NEX|ILCE/) {
5809
5812
  unless (%sonyEtype) {
@@ -31,7 +31,7 @@ use vars qw($VERSION);
31
31
  use Image::ExifTool qw(:DataAccess :Utils);
32
32
  use Image::ExifTool::Exif;
33
33
 
34
- $VERSION = '1.96';
34
+ $VERSION = '1.97';
35
35
 
36
36
  sub ProcessFujiDir($$$);
37
37
  sub ProcessFaceRec($$$);
@@ -628,6 +628,10 @@ my %faceCategories = (
628
628
  0x60006 => 'Partial Color Purple',
629
629
  0x70000 => 'Soft Focus',
630
630
  0x90000 => 'Low Key',
631
+ 0x100000 => 'Light Leak', #forum17392
632
+ 0x130000 => 'Expired Film Green', #forum17392
633
+ 0x130001 => 'Expired Film Red', #forum17392 (NC)
634
+ 0x130002 => 'Expired Film Neutral', #forum17392
631
635
  },
632
636
  },
633
637
  0x1210 => { #2
@@ -17,7 +17,7 @@ use vars qw($VERSION);
17
17
  use Image::ExifTool qw(:DataAccess :Utils);
18
18
  use Image::ExifTool::QuickTime;
19
19
 
20
- $VERSION = '1.12';
20
+ $VERSION = '1.13';
21
21
 
22
22
  sub ProcessGoPro($$$);
23
23
  sub ProcessString($$$);
@@ -762,7 +762,7 @@ sub ProcessString($$$)
762
762
  }
763
763
 
764
764
  #------------------------------------------------------------------------------
765
- # Process "GP\x06\0" records in MP4 'mdat'atom
765
+ # Process "GP\x06\0" records in MP4 'mdat' atom
766
766
  # Inputs: 0) ExifTool object ref, 1) dirInfo ref (RAF and DirLen)
767
767
  # Returns: size of GoPro record, or 0 on error
768
768
  sub ProcessGP6($$)
@@ -815,9 +815,16 @@ sub ProcessGoPro($$$)
815
815
 
816
816
  for (; $pos+8<=$dirEnd; $pos+=($size+3)&0xfffffffc) {
817
817
  my ($tag,$fmt,$len,$count) = unpack("x${pos}a4CCn", $$dataPt);
818
+ if ($tag =~ /[^-_a-zA-Z0-9 ]/) {
819
+ $et->Warn('Unrecognized GoPro record') unless $tag eq "\0\0\0\0";
820
+ last;
821
+ }
818
822
  $size = $len * $count;
819
823
  $pos += 8;
820
- last if $pos + $size > $dirEnd;
824
+ if ($pos + $size > $dirEnd) {
825
+ $et->Warn('Truncated GoPro record');
826
+ last;
827
+ }
821
828
  my $tagInfo = $et->GetTagInfo($tagTablePtr, $tag);
822
829
  last if $tag eq "\0\0\0\0"; # stop at null tag
823
830
  next unless $size or $verbose; # don't save empty values unless verbose
@@ -7,6 +7,7 @@
7
7
  #
8
8
  # References: 1) http://msdn.microsoft.com/en-us/library/dd871305(PROT.10).aspx
9
9
  # 2) http://www.i2s-lab.com/Papers/The_Windows_Shortcut_File_Format.pdf
10
+ # 3) https://harfanglab.io/insidethelab/sadfuture-xdspy-latest-evolution/#tid_specifications_ignored
10
11
  #------------------------------------------------------------------------------
11
12
 
12
13
  package Image::ExifTool::LNK;
@@ -15,7 +16,7 @@ use strict;
15
16
  use vars qw($VERSION);
16
17
  use Image::ExifTool qw(:DataAccess :Utils);
17
18
 
18
- $VERSION = '1.09';
19
+ $VERSION = '1.10';
19
20
 
20
21
  sub ProcessItemID($$$);
21
22
  sub ProcessLinkInfo($$$);
@@ -647,17 +648,32 @@ sub ProcessLNK($$)
647
648
  my @strings = qw(Description RelativePath WorkingDirectory
648
649
  CommandLineArguments IconFileName);
649
650
  for ($i=0; $i<@strings; ++$i) {
651
+ my ($val, $limit);
650
652
  my $mask = 0x04 << $i;
651
653
  next unless $flags & $mask;
652
654
  $raf->Read($buff, 2) or return 1;
655
+ my $pos = $raf->Tell();
653
656
  $len = unpack('v', $buff) or next;
657
+ # Windows doesn't follow their own specification and limits the length
658
+ # for most of these strings (ref 3)
659
+ if ($i != 3 and $len >= 260) {
660
+ $limit = 1;
661
+ if ($len > 260) {
662
+ $len = 260;
663
+ $et->Warn('LNK string data overrun! Possible security issue');
664
+ }
665
+ }
654
666
  $len *= 2 if $flags & 0x80; # characters are 2 bytes if Unicode flag is set
655
667
  $raf->Read($buff, $len) or return 1;
656
- my $val;
668
+ # remove last character if string is at length limit (Windows treats this as a null)
669
+ if ($limit) {
670
+ $len -= $flags & 0x80 ? 2 : 1;
671
+ $buff = substr($buff, 0, $len);
672
+ }
657
673
  $val = $et->Decode($buff, 'UCS2') if $flags & 0x80;
658
674
  $et->HandleTag($tagTablePtr, 0x30000 | $mask, $val,
659
675
  DataPt => \$buff,
660
- DataPos => $raf->Tell() - $len,
676
+ DataPos => $pos,
661
677
  Size => $len,
662
678
  );
663
679
  }
@@ -716,6 +732,8 @@ under the same terms as Perl itself.
716
732
 
717
733
  =item L<http://www.i2s-lab.com/Papers/The_Windows_Shortcut_File_Format.pdf>
718
734
 
735
+ =item L<https://harfanglab.io/insidethelab/sadfuture-xdspy-latest-evolution/#tid_specifications_ignored>
736
+
719
737
  =back
720
738
 
721
739
  =head1 SEE ALSO
@@ -11,7 +11,7 @@ package Image::ExifTool::Lang::de;
11
11
  use strict;
12
12
  use vars qw($VERSION);
13
13
 
14
- $VERSION = '1.37';
14
+ $VERSION = '1.38';
15
15
 
16
16
  %Image::ExifTool::Lang::de::Translate = (
17
17
  'AEAperture' => 'AE-Blende',
@@ -5126,6 +5126,7 @@ $VERSION = '1.37';
5126
5126
  'LensType' => {
5127
5127
  Description => 'Objektivtyp',
5128
5128
  PrintConv => {
5129
+ 'None' => 'Keiner',
5129
5130
  'Uncoded lens' => 'Nicht kodiertes Objektiv',
5130
5131
  },
5131
5132
  },
@@ -11,7 +11,7 @@ package Image::ExifTool::Lang::fr;
11
11
  use strict;
12
12
  use vars qw($VERSION);
13
13
 
14
- $VERSION = '1.36';
14
+ $VERSION = '1.37';
15
15
 
16
16
  %Image::ExifTool::Lang::fr::Translate = (
17
17
  'AEAperture' => 'Ouverture AE',
@@ -6607,6 +6607,7 @@ $VERSION = '1.36';
6607
6607
  'LensType' => {
6608
6608
  Description => 'Type d\'objectif',
6609
6609
  PrintConv => {
6610
+ 'None' => 'Aucun',
6610
6611
  'n/a' => 'Non applicable',
6611
6612
  'smc PENTAX-F 100-300mm F4.5-5.6 or Sigma Lens' => 'smc PENTAX-F 100-300mm F4.5-5.6 ou objectif Sigma',
6612
6613
  'smc PENTAX-F 28-80mm F3.5-4.5 or Tokina Lens' => 'smc PENTAX-F 28-80mm F3.5-4.5 ou objectif Tokina',
@@ -11,7 +11,7 @@ use strict;
11
11
  use vars qw($VERSION);
12
12
  use Image::ExifTool;
13
13
 
14
- $VERSION = '1.04';
14
+ $VERSION = '1.06';
15
15
 
16
16
  sub ProcessLigoGPS($$$;$);
17
17
  sub ProcessLigoJSON($$$);
@@ -223,11 +223,12 @@ sub DecipherLigoGPS($$$;$)
223
223
  #------------------------------------------------------------------------------
224
224
  # Parse decrypted/deciphered (but not defuzzed) LIGOGPSINFO record
225
225
  # (record starts with 4-byte int32u counter followed by date/time, etc)
226
- # Inputs: 0) ExifTool ref, 1) GPS string, 2) tag table ref, 3) not fuzzed
226
+ # Inputs: 0) ExifTool ref, 1) GPS string, 2) tag table ref,
227
+ # 3) flags: 0x01=not fuzzed, 0x02=spd in km/h
227
228
  # Returns: nothing
228
229
  sub ParseLigoGPS($$$;$)
229
230
  {
230
- my ($et, $str, $tagTbl, $noFuzz) = @_;
231
+ my ($et, $str, $tagTbl, $flags) = @_;
231
232
 
232
233
  # example string input
233
234
  # "....2022/09/19 12:45:24 N:31.285065 W:124.759483 46.93 km/h x:-0.000 y:-0.000 z:-0.000"
@@ -235,15 +236,16 @@ sub ParseLigoGPS($$$;$)
235
236
  $et->Warn('LIGOGPSINFO format error');
236
237
  return;
237
238
  }
239
+ $flags or $flags = 0;
238
240
  my ($time,$latRef,$latNeg,$lat,$lonRef,$lonNeg,$lon,$spd) = ($1,$2,$3,$4,$5,$6,$7,$8);
239
241
  my %gpsScl = ( 1 => 1.524855137, 2 => 1.456027985, 3 => 1.15368 );
240
- my $spdScl = $noFuzz ? $knotsToKph : 1.85407333;
242
+ my $spdScl = $flags & 0x01 ? ($flags & 0x02 ? 1 : $knotsToKph) : 1.85407333;
241
243
  $$et{DOC_NUM} = ++$$et{DOC_COUNT};
242
244
  $time =~ tr(/)(:);
243
245
  # convert from DDMM.MMMMMM to DD.DDDDDD if necessary
244
246
  # (speed wasn't scaled in my 1 sample with this format)
245
247
  $lat =~ /^\d{3}/ and Image::ExifTool::QuickTime::ConvertLatLon($lat,$lon), $spdScl = 1;
246
- unless ($noFuzz) { # unfuzz the coordinates if necessary
248
+ unless ($flags & 0x01) { # unfuzz the coordinates if necessary
247
249
  my $scl = $$et{OPTIONS}{LigoGPSScale} || $$et{LigoGPSScale} || 1;
248
250
  $scl = $gpsScl{$scl} if $gpsScl{$scl};
249
251
  ($lat, $lon) = UnfuzzLigoGPS($lat, $lon, $scl);
@@ -298,7 +300,13 @@ sub ProcessLigoGPS($$$;$)
298
300
  $et->VerboseDir($dirName);
299
301
  for (; $pos + 0x84 <= length($$dataPt); $pos+=0x84) {
300
302
  my $dat = substr($$dataPt, $pos, 0x84);
301
- $dat =~ /^####/ or next; # (have seen blank records filled with zeros, so keep trying)
303
+ unless ($dat =~ /^####/) {
304
+ next unless $dat =~ m(^.{4}\d{4}/\d{2}/\d{2} )s; # (have seen blank records filled with zeros, so keep trying)
305
+ # non-encrypted format written by Redtiger F9 4K
306
+ $dat =~ s/\0+$//; # remove trailing nulls
307
+ ParseLigoGPS($et, $dat, $tagTbl, 0x03);
308
+ next;
309
+ }
302
310
  # decipher if we already know the encryption
303
311
  $cipherInfo and $$cipherInfo{decipher} and DecipherLigoGPS($et, $dat, $tagTbl, $noFuzz) and next;
304
312
  my $str = DecryptLigoGPS($dat);
@@ -329,7 +337,7 @@ sub ProcessLigoJSON($$$)
329
337
  my $dataPt = $$dirInfo{DataPt};
330
338
  my $dirLen = $$dirInfo{DirLen};
331
339
  require Image::ExifTool::Import;
332
- $et->VerboseDir('LIGO_JSON', undef, length($$dataPt) - pos($$dataPt));
340
+ $et->VerboseDir('LIGO_JSON', undef, length($$dataPt) - (pos($$dataPt) || 0));
333
341
  $$et{SET_GROUP1} = 'LIGO';
334
342
  while ($$dataPt =~ /LIGOGPSINFO (\{.*?\})/g) {
335
343
  my $json = $1;
@@ -21,7 +21,7 @@ sub ProcessKodakPatch($$$);
21
21
  sub WriteUnknownOrPreview($$$);
22
22
  sub FixLeicaBase($$;$);
23
23
 
24
- $VERSION = '2.16';
24
+ $VERSION = '2.17';
25
25
 
26
26
  my $debug; # set to 1 to enable debugging code
27
27
 
@@ -991,9 +991,9 @@ my $debug; # set to 1 to enable debugging code
991
991
  {
992
992
  Name => 'MakerNoteSigma',
993
993
  Condition => q{
994
- return undef unless $$self{Make}=~/^(SIGMA|FOVEON)/;
994
+ return undef unless $$self{Make}=~/^(SIGMA|FOVEON)/i;
995
995
  # save version number in "MakerNoteSigmaVer" member variable
996
- $$self{MakerNoteSigmaVer} = $$valPt=~/^SIGMA\0\0\0\0(.)/ ? ord($1) : -1;
996
+ $$self{MakerNoteSigmaVer} = $$valPt=~/^SIGMA\0\0\0.(.)/s ? ord($1) : -1;
997
997
  return 1;
998
998
  },
999
999
  SubDirectory => {
@@ -65,7 +65,7 @@ use Image::ExifTool::Exif;
65
65
  use Image::ExifTool::GPS;
66
66
  use Image::ExifTool::XMP;
67
67
 
68
- $VERSION = '4.46';
68
+ $VERSION = '4.47';
69
69
 
70
70
  sub LensIDConv($$$);
71
71
  sub ProcessNikonAVI($$$);
@@ -5856,6 +5856,7 @@ my %nikonFocalConversions = (
5856
5856
  46 => 'Nikkor Z 135mm f/1.8 S Plena', #28
5857
5857
  47 => 'Nikkor Z 35mm f/1.2 S', #28
5858
5858
  48 => 'Nikkor Z 28-400mm f/4-8 VR', #30
5859
+ 49 => 'Nikkor Z 28-135mm f/4 PZ', #28
5859
5860
  51 => 'Nikkor Z 35mm f/1.4', #28
5860
5861
  52 => 'Nikkor Z 50mm f/1.4', #28
5861
5862
  2305 => 'Laowa FFII 10mm F2.8 C&D Dreamer', #30
@@ -12791,7 +12792,7 @@ my %nikonFocalConversions = (
12791
12792
  Name => 'UnknownInfo',
12792
12793
  SubDirectory => { TagTable => 'Image::ExifTool::Nikon::UnknownInfo' },
12793
12794
  },
12794
- # 0x200002d - int16u[3]: "512 0 0"
12795
+ # 0x200002d - int16u[3]: "512 0 0", "512 1 14", "512 3 10"
12795
12796
  0x2000032 => {
12796
12797
  Name => 'UnknownInfo2',
12797
12798
  SubDirectory => { TagTable => 'Image::ExifTool::Nikon::UnknownInfo2' },
@@ -12804,10 +12805,12 @@ my %nikonFocalConversions = (
12804
12805
  # 0x200003f - rational64s[2]: "0 0"
12805
12806
  # 0x2000042 - undef[6]: "0100\x03\0"
12806
12807
  # 0x2000043 - undef[12]: all zeros
12808
+ # 0x200004d - undef[84]: "0100\0\0\0\0x020100\0\0\0\x010100\0\0\0\x05\0\0\..."
12807
12809
  0x200004e => {
12808
12810
  Name => 'NikonSettings',
12809
12811
  SubDirectory => { TagTable => 'Image::ExifTool::NikonSettings::Main' },
12810
12812
  },
12813
+ # 0x2000055 - undef[8]: "0100\x01\0\0\0"
12811
12814
  0x2000083 => {
12812
12815
  Name => 'LensType',
12813
12816
  # credit to Tom Christiansen (ref 7) for figuring this out...
@@ -13011,7 +13014,11 @@ my %nikonFocalConversions = (
13011
13014
  Condition => '$$valPt =~ /^040[012]/',
13012
13015
  SubDirectory => { TagTable => 'Image::ExifTool::Nikon::AFInfo2V0400' },
13013
13016
  }],
13014
- # 0x20000c0 - undef[8]
13017
+ # 0x20000c0 - undef[8]:
13018
+ # 34 01 0c 00 90 01 0c 00
13019
+ # 34 01 0c 00 9c 01 0c 00
13020
+ # 3c 01 0c 00 9c 01 0c 00
13021
+ # 3c 01 0c 00 a8 01 0c 00
13015
13022
  0x20000c3 => {
13016
13023
  Name => 'BarometerInfo',
13017
13024
  SubDirectory => {
@@ -40,7 +40,7 @@ use Image::ExifTool qw(:DataAccess :Utils);
40
40
  use Image::ExifTool::Exif;
41
41
  use Image::ExifTool::APP12;
42
42
 
43
- $VERSION = '2.85';
43
+ $VERSION = '2.86';
44
44
 
45
45
  sub PrintLensInfo($$$);
46
46
 
@@ -550,6 +550,7 @@ my %filters = (
550
550
  4 => 'Light Tone',
551
551
  5 => 'Pin Hole', # (SZ-10 magic filter 2,SZ-31MR,E-PL3)
552
552
  6 => 'Grainy Film',
553
+ 8 => 'Underwater', #forum17348
553
554
  9 => 'Diorama',
554
555
  10 => 'Cross Process',
555
556
  12 => 'Fish Eye', # (SZ-10 magic filter 3)
@@ -581,6 +582,9 @@ my %filters = (
581
582
  39 => 'Partial Color', #forum6269
582
583
  40 => 'Partial Color II', #forum6269
583
584
  41 => 'Partial Color III', #forum6269
585
+ 42 => 'Bleach Bypass', #forum17348
586
+ 43 => 'Bleach Bypass II', #forum17348
587
+ 44 => 'Instant Film', #forum17348
584
588
  );
585
589
 
586
590
  my %toneLevelType = (
@@ -234,6 +234,7 @@ my %supportedFilter = (
234
234
  Kids => {
235
235
  SubDirectory => { TagTable => 'Image::ExifTool::PDF::Kids' },
236
236
  },
237
+ MediaBox => { Name => 'MediaBox', List => 1 },
237
238
  );
238
239
 
239
240
  # tags in PDF Perms dictionary
@@ -1439,7 +1439,7 @@ my %shootingMode = (
1439
1439
  0xde => { #forum17299
1440
1440
  Name => 'AFAreaSize',
1441
1441
  Writable => 'rational64u',
1442
- Notes => 'relative to size of image',
1442
+ Notes => 'relative to size of image. "n/a" for manual focus',
1443
1443
  Count => 2,
1444
1444
  PrintConv => '$val =~ /^4194303.999/ ? "n/a" : $val',
1445
1445
  PrintConvInv => '$val eq "n/a" ? "4194303.999 4194303.999" : $val',
@@ -56,7 +56,7 @@ sub Process_mett($$$);
56
56
  Name => 'ParrotAutomation',
57
57
  SubDirectory => { TagTable => 'Image::ExifTool::Parrot::Automation' },
58
58
  },
59
- # timed metadata written by ARCore (see forum13653)
59
+ # MetaType of timed metadata written by ARCore (see forum13653)
60
60
  'application/arcore-accel' => {
61
61
  Name => 'ARCoreAccel',
62
62
  SubDirectory => { TagTable => 'Image::ExifTool::Parrot::ARCoreAccel', ByteOrder => 'II' },
@@ -58,7 +58,7 @@ use Image::ExifTool::Exif;
58
58
  use Image::ExifTool::GPS;
59
59
  use Image::ExifTool::HP;
60
60
 
61
- $VERSION = '3.50';
61
+ $VERSION = '3.52';
62
62
 
63
63
  sub CryptShutterCount($$);
64
64
  sub PrintFilter($$$);
@@ -1263,7 +1263,7 @@ my %binaryDataAttrs = (
1263
1263
  }],
1264
1264
  },{
1265
1265
  Name => 'AFPointSelected',
1266
- Condition => '$$self{Model} =~ /K-3\b/',
1266
+ Condition => '$$self{Model} =~ /(K-3|KP)\b/',
1267
1267
  Writable => 'int16u',
1268
1268
  Notes => 'K-3',
1269
1269
  PrintConvColumns => 2,
@@ -1354,6 +1354,7 @@ my %binaryDataAttrs = (
1354
1354
  0xfffd => 'Automatic Tracking AF', #JD
1355
1355
  0xfffc => 'Face Detect AF', #JD
1356
1356
  0xfffb => 'AF Select', #PH (Q select from 25-areas)
1357
+ 0xfffa => 'Auto 2', #KarstenGieselmann
1357
1358
  0 => 'None', #PH (Q in manual focus mode)
1358
1359
  1 => 'Upper-left',
1359
1360
  2 => 'Top',
@@ -3038,6 +3039,10 @@ my %binaryDataAttrs = (
3038
3039
  # 0x0236 - undef[52] (Q)
3039
3040
  # 0x0237 - undef[11] possibly related to smart effect setting? (Q)
3040
3041
  # 0x0238 - undef[9] (Q)
3042
+ 0x0238 => { #KarstenGieselmann
3043
+ Name => 'CAFPointInfo',
3044
+ SubDirectory => { TagTable => 'Image::ExifTool::Pentax::CAFPointInfo' },
3045
+ },
3041
3046
  0x0239 => { #PH
3042
3047
  Name => 'LensInfoQ',
3043
3048
  SubDirectory => { TagTable => 'Image::ExifTool::Pentax::LensInfoQ' },
@@ -5001,10 +5006,10 @@ my %binaryDataAttrs = (
5001
5006
  # 0x0a - values: 00,05,0d,15,86,8e,a6,ae
5002
5007
  0x0b => { #JD
5003
5008
  Name => 'AFPointsInFocus',
5004
- Condition => '$$self{Model} !~ /K-[13]\b/',
5009
+ Condition => '$$self{Model} !~ /(K-(1|3|70)|KP)\b/',
5005
5010
  Notes => q{
5006
- models other than the K-1 and K-3. May report two points in focus even
5007
- though a single AFPoint has been selected, in which case the selected
5011
+ models other than the K-1, K-3, K-70 and KP. May report two points in focus
5012
+ even though a single AFPoint has been selected, in which case the selected
5008
5013
  AFPoint is the first reported
5009
5014
  },
5010
5015
  PrintConvColumns => 2,
@@ -5081,6 +5086,37 @@ my %binaryDataAttrs = (
5081
5086
  },
5082
5087
  );
5083
5088
 
5089
+ # AF information for K-01 and later (ref Karsten Gieselmann private communication)
5090
+ %Image::ExifTool::Pentax::CAFPointInfo = (
5091
+ %binaryDataAttrs,
5092
+ FIRST_ENTRY => 0,
5093
+ DATAMEMBER => [ 1 ],
5094
+ GROUPS => { 0 => 'MakerNotes', 2 => 'Camera' },
5095
+ NOTES => 'Contrast-detect AF-point information for the K-01 and later models.',
5096
+ 1 => {
5097
+ Name => 'NumCAFPoints',
5098
+ RawConv => '$$self{NumCAFPoints} = ($val & 0x0f) * ($val >> 4); $val',
5099
+ ValueConv => '($val >> 4) * ($val & 0x0f)',
5100
+ },
5101
+ 1.1 => {
5102
+ Name => 'CAFGridSize',
5103
+ ValueConv => '($val >> 4) . " " . ($val & 0x0f)', # (width x height)
5104
+ PrintConv => '$val =~ tr/ /x/; $val',
5105
+ },
5106
+ 2 => {
5107
+ Name => 'CAFPointsInFocus',
5108
+ Format => 'int8u[int(($val{1}+3)/4)]',
5109
+ Writable => 0,
5110
+ PrintConv => 'Image::ExifTool::Pentax::DecodeAFPoints($val,$$self{NumCAFPoints},2,0x02)',
5111
+ },
5112
+ 2.1 => {
5113
+ Name => 'CAFPointsSelected',
5114
+ Format => 'int8u[int(($val{1}+3)/4)]',
5115
+ Writable => 0,
5116
+ PrintConv => 'Image::ExifTool::Pentax::DecodeAFPoints($val,$$self{NumCAFPoints},2,0x03)',
5117
+ },
5118
+ );
5119
+
5084
5120
  # Kelvin white balance information (ref 28, topic 4834)
5085
5121
  %Image::ExifTool::Pentax::KelvinWB = (
5086
5122
  %binaryDataAttrs,
@@ -5747,29 +5783,34 @@ my %binaryDataAttrs = (
5747
5783
  %Image::ExifTool::Pentax::AFPointInfo = (
5748
5784
  %binaryDataAttrs,
5749
5785
  GROUPS => { 0 => 'MakerNotes', 2 => 'Camera' },
5786
+ DATAMEMBER => [ 2 ],
5750
5787
  NOTES => 'AF point information written by the K-1.',
5751
5788
  # 0 - int16u: 1 (version?)
5752
5789
  2 => {
5753
5790
  Name => 'NumAFPoints',
5754
5791
  Format => 'int16u',
5792
+ RawConv => '$$self{NumAFPoints} = $val',
5755
5793
  },
5756
5794
  4 => {
5757
5795
  Name => 'AFPointsInFocus',
5758
- Condition => '$$self{Model} =~ /K-1\b/',
5759
- Format => 'int8u[9]',
5760
- PrintConv => 'Image::ExifTool::Pentax::DecodeAFPoints($val,33,2,0x02)',
5796
+ Condition => '$$self{Model} =~ /K(P|-1|-70)\b/',
5797
+ Format => 'int8u[int(($val{2}+3)/4)]',
5798
+ Writable => 0,
5799
+ PrintConv => 'Image::ExifTool::Pentax::DecodeAFPoints($val,$$self{NumAFPoints},2,0x02)',
5761
5800
  },
5762
5801
  4.1 => {
5763
5802
  Name => 'AFPointsSelected',
5764
- Condition => '$$self{Model} =~ /K-1\b/',
5765
- Format => 'int8u[9]',
5766
- PrintConv => 'Image::ExifTool::Pentax::DecodeAFPoints($val,33,2,0x03)',
5803
+ Condition => '$$self{Model} =~ /K(P|-1|-70)\b/',
5804
+ Format => 'int8u[int(($val{2}+3)/4)]',
5805
+ Writable => 0,
5806
+ PrintConv => 'Image::ExifTool::Pentax::DecodeAFPoints($val,$$self{NumAFPoints},2,0x03)',
5767
5807
  },
5768
5808
  4.2 => {
5769
5809
  Name => 'AFPointsSpecial',
5770
- Condition => '$$self{Model} =~ /K-1\b/',
5771
- Format => 'int8u[9]',
5772
- PrintConv => 'Image::ExifTool::Pentax::DecodeAFPoints($val,33,2,0x03,0x03)',
5810
+ Condition => '$$self{Model} =~ /K(P|-1|-70)\b/',
5811
+ Format => 'int8u[int(($val{2}+3)/4)]',
5812
+ Writable => 0,
5813
+ PrintConv => 'Image::ExifTool::Pentax::DecodeAFPoints($val,$$self{NumAFPoints},2,0x03,0x03)',
5773
5814
  },
5774
5815
  );
5775
5816
 
@@ -6397,6 +6438,7 @@ sub DecodeAFPoints($$$$;$)
6397
6438
  {
6398
6439
  my ($val, $num, $bits, $mask, $bitVal) = @_;
6399
6440
  my @bytes = split ' ', $val;
6441
+ return '(none)' unless @bytes;
6400
6442
  my $i = 1; # (starts at AF point number 1)
6401
6443
  my $shift = 8 - $bits;
6402
6444
  my $byte = shift @bytes;
@@ -11,7 +11,7 @@ package Image::ExifTool::Plot;
11
11
  use strict;
12
12
  use vars qw($VERSION);
13
13
 
14
- $VERSION = '1.03';
14
+ $VERSION = '1.05';
15
15
 
16
16
  # default plot settings (lower-case settings may be overridden by the user)
17
17
  my %defaults = (
@@ -201,7 +201,7 @@ sub AddPoints($$$)
201
201
  $$data{$name}[$xmax - $xmin] = $val if $xmax >= $xmin;
202
202
  next;
203
203
  }
204
- if ($docNum and $num{$name} < $docNum) {
204
+ if ($docNum and defined $num{$name} and $num{$name} < $docNum) {
205
205
  $num{$name} = $docNum; # keep documents synchronized if some tags are missing
206
206
  } else {
207
207
  $num{$name} = $xmax unless defined $num{$name};
@@ -321,7 +321,6 @@ sub Draw($$)
321
321
  foreach (0 .. (($multi[$plotNum] || 1) - 1)) {
322
322
  push @{$$self{Name}}, shift(@names);
323
323
  }
324
- warn "@{$$self{Name}}\n";
325
324
  undef $min; undef $max;
326
325
  foreach ($scat .. (@{$$self{Name}} - 1)) {
327
326
  my $dat = $$self{Data}{$$self{Name}[$_]};