Project

General

Profile

Bug #866

Deleting the tag "Exif.Image.Make" deletes 58 tags in <exiv2dir>/msvc/test.jpg

Added by Robin Mills about 9 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
exif
Target version:
Start date:
04 Nov 2012
Due date:
% Done:

0%

Estimated time:

Description

This has been reported in the forum: http://dev.exiv2.org/boards/3/topics/1295

I've reproduced the issue with the exiv2 application (built from trunk and running on Cygwin)

$ cp ~/gnu/exiv2/exiv2.master/msvc/test.jpg .
$ exiv2 -pa test.jpg | wc
    108     679    8025
$ exiv2 -pa test.jpg | grep "Exif\.Canon\.ModelID" 
Exif.Canon.ModelID                           Long        1  PowerShot S5 IS
$ exiv2 -M"del Exif.Canon.ModelID" test.jpg
$ exiv2 -pa test.jpg | wc
    107     673    7949
$  exiv2 -pa test.jpg | grep "Exif\.Canon\.ModelID" 
$ exiv2 -pa test.jpg | grep "Exif\.Image\.Make" 
Exif.Image.Make                              Ascii       6  Canon
$ exiv2 -M"del Exif.Image.Make" test.jpg
$ exiv2 -pa test.jpg | wc
     50     222    3438

$ cp ~/gnu/exiv2/exiv2.master/msvc/test.jpg .
$ exiv2 -pa test.jpg | sort > orig.txt ; wc orig.txt
 108  679 8025 orig.txt
$ exiv2 -M"del Exif.Image.Make" test.jpg
$ exiv2 -pa test.jpg | sort > changed.txt ; wc changed.txt
  50  222 3438 changed.txt
$ diff orig.txt changed.txt
1,55d0
< Exif.Canon.AFInfo                            Short      48  96 2 9 1 2592 1944 1088 245 196 0 0 0 0 0 0 0 0 44 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0
< Exif.Canon.CameraInfo                        Long      148  370 411 0 0 0 384 874 4294967255 0 0 0 0 577 889 4294967150 0 0 4294967287 0 0 1 0 0 0 9 10 888 888 888 384 1015 4294967148 0 0 888 888 0 0 1 3072 3072 3072 3072 3072 4294964224 4294964224 4294964224 4294964224 4294964224 0 4294964224 4294967287 0 0 0 0 0 0 0 0 0 0 164 1024 1024 40 94 0 0 0 0 0 0 525 0 40 94 0 0 3 1 0 0 921 1027 1024 1280 0 40 97 10 881 1646 1711 881 1 1014 384 888 659 4294967148 2 128 1 0 0 0 0 7532 5 0 0 0 0 0 0 7819 8252 8279 128 1 0 4294961112 3 1 7471 0 0 0 0 0 0 0 0 5345 1088 245 446 100 196 44 4091 4091 1 1 25 8 2400605383
< Exif.Canon.FileNumber                        Long        1  100-1904
< Exif.Canon.FirmwareVersion                   Ascii      22  Firmware Version 1.01
< Exif.Canon.FocalLength                       Short       4  21.3 mm
< Exif.Canon.ImageType                         Ascii      25  IMG:PowerShot S5 IS JPEG
< Exif.Canon.ModelID                           Long        1  PowerShot S5 IS
< Exif.Canon.OwnerName                         Ascii      32  Robin Mills
< Exif.Canon.SuperMacro                        Short       1  Off
< Exif.Canon.ThumbnailImageValidArea           Short       4  0 0 0 0
< Exif.CanonCs.AESetting                       Short       1  Normal AE
< Exif.CanonCs.AFPoint                         Short       1  Manual AF point selection
< Exif.CanonCs.ColorTone                       Short       1  32767
< Exif.CanonCs.Contrast                        Short       1  Normal
< Exif.CanonCs.DigitalZoom                     Short       1  None
< Exif.CanonCs.DisplayAperture                 Short       1  0
< Exif.CanonCs.DriveMode                       Short       1  Single / timer
< Exif.CanonCs.EasyMode                        Short       1  Manual
< Exif.CanonCs.ExposureProgram                 Short       1  Program (P)
< Exif.CanonCs.FlashActivity                   Short       1  Did not fire
< Exif.CanonCs.FlashDetails                    Short       1
< Exif.CanonCs.FlashMode                       Short       1  Off
< Exif.CanonCs.FocusContinuous                 Short       1  Continuous
< Exif.CanonCs.FocusMode                       Short       1  Single
< Exif.CanonCs.FocusType                       Short       1  Auto
< Exif.CanonCs.ImageSize                       Short       1  Medium 1
< Exif.CanonCs.ImageStabilization              Short       1  On
< Exif.CanonCs.ISOSpeed                        Short       1  Auto
< Exif.CanonCs.Lens                            Short       3  6.0 - 72.0 mm
< Exif.CanonCs.LensType                        Short       1  (65535)
< Exif.CanonCs.Macro                           Short       1  Off
< Exif.CanonCs.ManualFlashOutput               Short       1  n/a
< Exif.CanonCs.MaxAperture                     Short       1  F3.6
< Exif.CanonCs.MeteringMode                    Short       1  Evaluative
< Exif.CanonCs.MinAperture                     Short       1  F8
< Exif.CanonCs.PhotoEffect                     Short       1  (65535)
< Exif.CanonCs.Quality                         Short       1  Fine
< Exif.CanonCs.Saturation                      Short       1  Normal
< Exif.CanonCs.Selftimer                       Short       1  Off
< Exif.CanonCs.Sharpness                       Short       1  Normal
< Exif.CanonCs.SpotMeteringMode                Short       1  Center
< Exif.CanonCs.ZoomSourceWidth                 Short       1  3264
< Exif.CanonCs.ZoomTargetWidth                 Short       1  3264
< Exif.CanonSi.AFPointUsed                     Short       1  0 focus points; none used
< Exif.CanonSi.ApertureValue                   Short       1  F4
< Exif.CanonSi.FlashBias                       Short       1  0 EV
< Exif.CanonSi.ISOSpeed                        Short       1  100
< Exif.CanonSi.MeasuredEV                      Short       1  14.25
< Exif.CanonSi.MeasuredEV2                     Short       1  -6.00
< Exif.CanonSi.Sequence                        Short       1  0
< Exif.CanonSi.ShutterSpeedValue               Short       1  1/546 s
< Exif.CanonSi.SubjectDistance                 Short       1  503
< Exif.CanonSi.TargetAperture                  Short       1  F4
< Exif.CanonSi.TargetShutterSpeed              Short       1  1/501 s
< Exif.CanonSi.WhiteBalance                    Short       1  Sunny
57,58c2
< Exif.Image.ExifTag                           Long        1  186
< Exif.Image.Make                              Ascii       6  Canon
---
> Exif.Image.ExifTag                           Long        1  168
69,70d12
< Exif.MakerNote.ByteOrder                     Ascii       3  MM
< Exif.MakerNote.Offset                        Long        1  680
91c33
< Exif.Photo.InteroperabilityTag               Long        1  3350
---
> Exif.Photo.InteroperabilityTag               Long        1  3332
104c46
< Exif.Thumbnail.JPEGInterchangeFormat         Long        1  3498
---
> Exif.Thumbnail.JPEGInterchangeFormat         Long        1  3480
$

History

#1

Updated by Robin Mills over 8 years ago

  • Target version changed from 0.24 to 0.25

Deferred to 0.25.

#2

Updated by Phil Harvey about 8 years ago

I don't think this can be considered a bug. Exif.Image.Make is required to be able to recognize and decode the maker notes. This is explained in ExifTool FAQ number 8:

http://owl.phy.queensu.ca/~phil/exiftool/faq.html#Q8

#3

Updated by Robin Mills about 8 years ago

  • Status changed from Assigned to Closed

Ahhhhhh. Thanks for updating this Phil. I'll be honest and admit that I haven't investigated this. You're right. When Exiv.Image.Make is removed, all the maker notes also removed. Right. I'm going to close this. Thanks for looking at this.

Robin

Also available in: Atom PDF