[Originally posted by goddert on 2007-10-02 12:14:57-07]Hi,
I'm not very experienced with exiftool and now when I'm using it more often I discovered a behavior which I can't explain. I read the FAQ but neither there I didn't find an answer.
As I understand "exiftool -exif:all image.jpg" makes me get all exif data and in fact it does. I also read in the writing examples that "exiftool -all= --exif:all image.jpg" should eliminate all tags excluding the exif data but it doesn't. It deletes all my tags.
When I try to make me a list of all tags (-a -s -G1 or G) it doesn't show me any. The only thing which comes to mind is a defect file but other tools don't report me any error.
I'm on Windows XP with version 3.96
If wished I can send an example image. Attached you find a -v3 output of "exiftool -all= --exif:all image.jpg"
Thanks in advance
Deleting all AFCP tags
Deleting all CanonVRD tags
Deleting all CIFF tags
Deleting all Ducky tags
Deleting all EXIF tags
Deleting all ExifIFD tags
Deleting all File tags
Deleting all FlashPix tags
Deleting all FotoStation tags
Deleting all GPS tags
Deleting all ICC_Profile tags
Deleting all IFD0 tags
Deleting all IPTC tags
Deleting all JFIF tags
Deleting all MakerNotes tags
Deleting all Meta tags
Deleting all MetaIFD tags
Deleting all MIE tags
Deleting all PhotoMechanic tags
Deleting all Photoshop tags
Deleting all PNG tags
Deleting all PrintIM tags
Deleting all RMETA tags
Deleting all Trailer tags
Deleting all XMP tags
Deleting all * tags
Removed group EXIF from delete list
======== ./image.jpg
Rewriting ./image.jpg...
Editing tags in: * AFCP APP0 APP1 APP12 APP13 APP2 APP3 APP5 CIFF COM CanonVRD Comment Ducky ExifIFD FlashPix FotoStation GPS ICC_Profile IFD0 IPTC JFIF MIE MakerNotes Meta MetaIFD PNG PhotoMechanic Photoshop PrintIM RMETA Trailer XMP
Creating tags in:
JPEG APP1 (620 bytes):
0000: 45 78 69 66 00 00 49 49 2a 00 08 00 00 00 08 00 [Exif..II*.......]
0010: 0f 01 02 00 06 00 00 00 6e 00 00 00 10 01 02 00 [........n.......]
0020: 13 00 00 00 74 00 00 00 1a 01 05 00 01 00 00 00 [....t...........]
0030: 88 00 00 00 1b 01 05 00 01 00 00 00 90 00 00 00 [................]
0040: 28 01 03 00 01 00 00 00 02 00 00 00 31 01 02 00 [(...........1...]
0050: 1c 00 00 00 98 00 00 00 32 01 02 00 14 00 00 00 [........2.......]
0060: b4 00 00 00 69 87 04 00 01 00 00 00 c8 00 00 00 [....i...........]
[snip 508 bytes]
Deleting IFD0
Deleting APP1 EXIF segment
JPEG APP13 (13028 bytes):
0000: 50 68 6f 74 6f 73 68 6f 70 20 33 2e 30 00 38 42 [Photoshop 3.0.8B]
0010: 49 4d 04 0c 00 00 00 00 32 ae 00 00 00 01 00 00 [IM......2.......]
0020: 01 00 00 00 00 a7 00 00 03 00 00 01 f5 00 00 00 [................]
0030: 32 92 00 18 00 01 ff d8 ff ee 00 0e 41 64 6f 62 [2...........Adob]
0040: 65 00 64 00 00 00 00 01 ff db 00 84 00 06 04 04 [e.d.............]
0050: 04 05 04 06 05 05 06 09 06 05 06 09 0b 08 06 06 [................]
0060: 08 0b 0c 0a 0a 0b 0a 0a 0c 10 0c 0c 0c 0c 0c 0c [................]
[snip 12916 bytes]
Deleting Photoshop
Deleting APP13 Photoshop segment
JPEG APP2 (3158 bytes):
0000: 49 43 43 5f 50 52 4f 46 49 4c 45 00 01 01 00 00 [ICC_PROFILE.....]
0010: 0c 48 4c 69 6e 6f 02 10 00 00 6d 6e 74 72 52 47 [.HLino....mntrRG]
0020: 42 20 58 59 5a 20 07 ce 00 02 00 09 00 06 00 31 [B XYZ .........1]
0030: 00 00 61 63 73 70 4d 53 46 54 00 00 00 00 49 45 [..acspMSFT....IE]
0040: 43 20 73 52 47 42 00 00 00 00 00 00 00 00 00 00 [C sRGB..........]
0050: 00 00 00 00 f6 d6 00 01 00 00 00 00 d3 2d 48 50 [.............-HP]
0060: 20 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ ..............]
[snip 3046 bytes]
Deleting APP2 ICC_Profile segment
JPEG APP1 (8801 bytes):
0000: 68 74 74 70 3a 2f 2f 6e 73 2e 61 64 6f 62 65 2e [http://ns.adobe.]
0010: 63 6f 6d 2f 78 61 70 2f 31 2e 30 2f 00 3c 3f 78 [com/xap/1.0/.<?x]
0020: 70 61 63 6b 65 74 20 62 65 67 69 6e 3d 22 ef bb [packet begin="..]
0030: bf 22 20 69 64 3d 22 57 35 4d 30 4d 70 43 65 68 [." id="W5M0MpCeh]
0040: 69 48 7a 72 65 53 7a 4e 54 63 7a 6b 63 39 64 22 [iHzreSzNTczkc9d"]
0050: 3f 3e 0a 3c 78 3a 78 6d 70 6d 65 74 61 20 78 6d [?>.<x:xmpmeta xm]
0060: 6c 6e 73 3a 78 3d 22 61 64 6f 62 65 3a 6e 73 3a [lns:x="adobe:ns:]
[snip 8689 bytes]
Deleting XMP
Deleting APP1 XMP segment
JPEG APP14 (12 bytes):
0000: 41 64 6f 62 65 00 64 40 00 00 00 01 [Adobe.d@....]
Deleting APP14 unknown segment
JPEG DQT (130 bytes):
JPEG SOF0:
JPEG DRI (2 bytes):
JPEG DHT (416 bytes):
JPEG SOS
1 directories scanned
1 image files updated
[Originally posted by exiftool on 2007-10-02 14:10:54-07]
You're right, this doesn't work intuitively. When you exclude the EXIF
group from being deleted, the IFD0 and ExifIFD groups remain in
the deletion list, so the EXIF information is effectively deleted anyway.
Currently, to do what you want you need to add --exif:all --exififd:all --ifd0:all.
I see if I can fix this so it behaves as one would expect.
Thanks for pointing this out.
- Phil
[Originally posted by goddert on 2007-10-02 14:53:09-07]
Thank you very much. Before your mail I did try only --ifd0 or --exifid but never both.
Now it works well. Again thanks.
[Originally posted by exiftool on 2007-10-02 15:10:16-07]I forgot about the GPS and Makernotes, which must also be excluded to
preserve all EXIF information (so the full list is: exif, ifd0, exififd, gps,
makernotes).
However, I have fixed this problem and version 6.99 will behave as you
originally expected with just "-all= --exif:all". I have uploaded a
6.99
pre-release in case you want to try it before the official release.
Thanks again for pointing out this problem.
- Phil
[Originally posted by exiftool on 2007-10-02 15:37:36-07]
Sorry, there was a delay getting the pre-release updated, but it is done now.
If you downloaded the pre-release before reading this, please re-download
to be sure you got the update. Thanks. - Phil
[Originally posted by goddert on 2007-10-02 15:38:53-07]Works perfectly with only --exif:all and 6.99pre as you can see from the output. But you know that better than me ...
Thanks again
Deleting all AFCP tags
Deleting all CanonVRD tags
Deleting all CIFF tags
Deleting all Ducky tags
Deleting all EXIF tags
Deleting all ExifIFD tags
Deleting all File tags
Deleting all FlashPix tags
Deleting all FotoStation tags
Deleting all GPS tags
Deleting all ICC_Profile tags
Deleting all IFD0 tags
Deleting all IPTC tags
Deleting all JFIF tags
Deleting all MakerNotes tags
Deleting all Meta tags
Deleting all MetaIFD tags
Deleting all MIE tags
Deleting all PhotoMechanic tags
Deleting all Photoshop tags
Deleting all PNG tags
Deleting all PrintIM tags
Deleting all RMETA tags
Deleting all Trailer tags
Deleting all XMP tags
Deleting all * tags
Removed group EXIF from delete list
Removed group IFD0 from delete list
Removed group ExifIFD from delete list
Removed group GPS from delete list
Removed group MakerNotes from delete list
======== ./image.jpg
Rewriting ./image.jpg...
Editing tags in: * AFCP APP0 APP1 APP12 APP13 APP2 APP3 APP5 CIFF COM CanonVRD Comment Ducky FlashPix FotoStation ICC_Profile IFD0 IPTC JFIF MIE Meta MetaIFD PNG PhotoMechanic Photoshop PrintIM RMETA Trailer XMP
Creating tags in:
JPEG APP1 (620 bytes):
0000: 45 78 69 66 00 00 49 49 2a 00 08 00 00 00 08 00 [Exif..II*.......]
0010: 0f 01 02 00 06 00 00 00 6e 00 00 00 10 01 02 00 [........n.......]
0020: 13 00 00 00 74 00 00 00 1a 01 05 00 01 00 00 00 [....t...........]
0030: 88 00 00 00 1b 01 05 00 01 00 00 00 90 00 00 00 [................]
0040: 28 01 03 00 01 00 00 00 02 00 00 00 31 01 02 00 [(...........1...]
0050: 1c 00 00 00 98 00 00 00 32 01 02 00 14 00 00 00 [........2.......]
0060: b4 00 00 00 69 87 04 00 01 00 00 00 c8 00 00 00 [....i...........]
[snip 508 bytes]
ExifByteOrder = II
Rewriting IFD0
Rewriting ExifIFD
JPEG APP13 (13028 bytes):
0000: 50 68 6f 74 6f 73 68 6f 70 20 33 2e 30 00 38 42 [Photoshop 3.0.8B]
0010: 49 4d 04 0c 00 00 00 00 32 ae 00 00 00 01 00 00 [IM......2.......]
0020: 01 00 00 00 00 a7 00 00 03 00 00 01 f5 00 00 00 [................]
0030: 32 92 00 18 00 01 ff d8 ff ee 00 0e 41 64 6f 62 [2...........Adob]
0040: 65 00 64 00 00 00 00 01 ff db 00 84 00 06 04 04 [e.d.............]
0050: 04 05 04 06 05 05 06 09 06 05 06 09 0b 08 06 06 [................]
0060: 08 0b 0c 0a 0a 0b 0a 0a 0c 10 0c 0c 0c 0c 0c 0c [................]
[snip 12916 bytes]
Deleting Photoshop
Deleting APP13 Photoshop segment
JPEG APP2 (3158 bytes):
0000: 49 43 43 5f 50 52 4f 46 49 4c 45 00 01 01 00 00 [ICC_PROFILE.....]
0010: 0c 48 4c 69 6e 6f 02 10 00 00 6d 6e 74 72 52 47 [.HLino....mntrRG]
0020: 42 20 58 59 5a 20 07 ce 00 02 00 09 00 06 00 31 [B XYZ .........1]
0030: 00 00 61 63 73 70 4d 53 46 54 00 00 00 00 49 45 [..acspMSFT....IE]
0040: 43 20 73 52 47 42 00 00 00 00 00 00 00 00 00 00 [C sRGB..........]
0050: 00 00 00 00 f6 d6 00 01 00 00 00 00 d3 2d 48 50 [.............-HP]
0060: 20 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ ..............]
[snip 3046 bytes]
Deleting APP2 ICC_Profile segment
JPEG APP1 (8801 bytes):
0000: 68 74 74 70 3a 2f 2f 6e 73 2e 61 64 6f 62 65 2e [http://ns.adobe.]
0010: 63 6f 6d 2f 78 61 70 2f 31 2e 30 2f 00 3c 3f 78 [com/xap/1.0/.<?x]
0020: 70 61 63 6b 65 74 20 62 65 67 69 6e 3d 22 ef bb [packet begin="..]
0030: bf 22 20 69 64 3d 22 57 35 4d 30 4d 70 43 65 68 [." id="W5M0MpCeh]
0040: 69 48 7a 72 65 53 7a 4e 54 63 7a 6b 63 39 64 22 [iHzreSzNTczkc9d"]
0050: 3f 3e 0a 3c 78 3a 78 6d 70 6d 65 74 61 20 78 6d [?>.<x:xmpmeta xm]
0060: 6c 6e 73 3a 78 3d 22 61 64 6f 62 65 3a 6e 73 3a [lns:x="adobe:ns:]
[snip 8689 bytes]
Deleting XMP
Deleting APP1 XMP segment
JPEG APP14 (12 bytes):
0000: 41 64 6f 62 65 00 64 40 00 00 00 01 [Adobe.d@....]
Deleting APP14 unknown segment
JPEG DQT (130 bytes):
JPEG SOF0:
JPEG DRI (2 bytes):
JPEG DHT (416 bytes):
JPEG SOS
1 directories scanned
1 image files updated
[Originally posted by goddert on 2007-10-02 15:41:21-07]
Seems it was a question of seconds as the one I downloaded works perfectly
Thanks
Goddert
[Originally posted by exiftool on 2007-10-02 15:58:31-07]
Great. Good use of the verbose output too, it is often useful
to help figure out problems like this.
- Phil