ExifTool Forum

ExifTool => Archives => Topic started by: Archive on May 12, 2010, 08:54:08 AM

Title: Cannot remove Software tag
Post by: Archive on May 12, 2010, 08:54:08 AM
[Originally posted by molineli on 2007-09-20 07:51:51-07]

Why can't I remove this tag?:

Code:
C:\exiftool>exiftool -G -s -*:Software pru.jpg
[XMP]           Software                        : LightZone

C:\exiftool>texiftool -*:Software= pru.jpg
    0 image files updated
    1 image files unchanged

C:\exiftool>texiftool -G -s -*:Software pru.jpg
[XMP]           Software                        : LightZone

C:>
Title: Re: Cannot remove Software tag
Post by: Archive on May 12, 2010, 08:54:08 AM
<span style="color: gray;"><i>[Originally posted by exiftool on 2007-09-20 11:40:08-07]</i></span>

What system are you running?  Normally a '*' on the command line
must be quoted.  Either that, or use the synonym 'all'.  Also, why
do your last two commands use 'texiftool'?

But those questions aside.  The information will only be deleted
if it is in the XMP-tiff group because this is the only XMP Software
tag that has been pre-defined.  Try using -G1 to be sure it is in
XMP-tiff, and if not, the only solution is to add a user-defined tag
to make it writible.

You can also try adding a -v3 to the write command to give me
a bit more information in case this wasn't the problem.  Also,
if you could email me a copy of the file I could test it here (philharvey66
at gmail.com).  Thanks.

- Phil
Title: Re: Cannot remove Software tag
Post by: Archive on May 12, 2010, 08:54:08 AM
[Originally posted by molineli on 2007-09-20 12:49:15-07]

I am using Win XP. The "t" in "texiftool" was only a mistake when pasting
the code.

Here are the new tests:

Code:
C:\StandaloneSoftware\exiftool>exiftool -G1 -s -all:Software pru.jpg
[XMP-exif]      Software                        : LightZone

C:\StandaloneSoftware\exiftool>exiftool -G1 -s -v3 -all:Software= pru.jpg
Deleting PNG:Software
Deleting MIE-Doc:Software
Writing Sigma:Software if tag exists
Deleting XMP-tiff:Software
Deleting IFD0:Software
======== pru.jpg
Rewriting pru.jpg...
  Editing tags in: APP0 APP1 CIFF ExifIFD IFD0 JFIF MIE-Doc MakerNotes PNG XMP
  Creating tags in:
JPEG APP0 (14 bytes):
    0000: 4a 46 49 46 00 01 02 01 00 c8 00 c8 00 00       [JFIF..........]
  Rewriting JFIF
JPEG APP1 (5116 bytes):
    0000: 45 78 69 66 00 00 49 49 2a 00 08 00 00 00 08 00 [Exif..II*.......]
    0010: 00 01 03 00 01 00 00 00 10 11 00 00 01 01 03 00 [................]
    0020: 01 00 00 00 60 0b 00 00 12 01 03 00 01 00 00 00 [....`...........]
    0030: 01 00 00 00 1a 01 05 00 01 00 00 00 6e 00 00 00 [............n...]
    0040: 1b 01 05 00 01 00 00 00 76 00 00 00 28 01 03 00 [........v...(...]
    0050: 01 00 00 00 02 00 00 00 32 01 02 00 14 00 00 00 [........2.......]
    0060: 7e 00 00 00 69 87 04 00 01 00 00 00 92 00 00 00 [~...i...........]
    [snip 5004 bytes]
  Rewriting IFD0
  Rewriting ExifIFD
  Rewriting IFD1
JPEG APP1 (7031 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 27 ef bb [packet begin='..]
    0030: bf 27 20 69 64 3d 27 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 27 [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 27 61 64 6f 62 65 3a 6e 73 3a [lns:x='adobe:ns:]
    [snip 6919 bytes]
  Rewriting XMP
JPEG APP14 (12 bytes):
    0000: 41 64 6f 62 65 00 64 40 00 00 00 01             [Adobe.d@....]
JPEG DQT (130 bytes):
JPEG SOF0:
JPEG DRI (2 bytes):
JPEG DHT (416 bytes):
JPEG SOS
    0 image files updated
    1 image files unchanged

I also send you the file by e-mail.

Thanks for your quick response.
Title: Re: Cannot remove Software tag
Post by: Archive on May 12, 2010, 08:54:08 AM
[Originally posted by exiftool on 2007-09-20 13:09:00-07]

Thanks for the sample.  My first guess at the problem was correct.
Your software (LightZone, apparently) is writing the Software tag to the
wrong XMP namespace ('exif' instead of 'tiff').  This is contradictory to the
XMP specification.  This is a bug, and should be reported to the LightZone
developers.

But you can use exiftool to write this non-standard XMP information
by adding a user-defined tag. The following configuration file will do this
for you:

Code:
%Image::ExifTool::UserDefined = (
    'Image::ExifTool::XMP::exif' => {
        Software => { },
    },
);
1; #end

 See the
sample
ExifTool configuration file
for more information about how
to use and activate the config file.

- Phil
Title: Re: Cannot remove Software tag
Post by: Archive on May 12, 2010, 08:54:08 AM
[Originally posted by exiftool on 2007-09-20 13:25:15-07]

I checked your sample image for other problems.  There are other non-standard
tags which they are writing.  Here is the complete list:

Code:
XMP-exif:HostComputer
XMP-exif:ImageHeight
XMP-exif:ImageWidth
XMP-exif:Software
XMP-tiff:HostComputer
XMP-tiff:ImageHeight

- Phil
Title: Re: Cannot remove Software tag
Post by: Archive on May 12, 2010, 08:54:08 AM
[Originally posted by molineli on 2007-09-20 13:33:09-07]

Thank you very much. I have understood and it works now.
I'll try to report this incident to LightZone developers.

Great software!