ExifTool Forum

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

Title: write Canon FileNumber not possible?
Post by: Archive on May 12, 2010, 08:54:41 AM
[Originally posted by sadela on 2009-10-11 08:48:03-07]

I tried to change the FileNumber of Canon files but with no luck.

Is it correct that the following tags are not writable and if so, why?

Canon EOS 5DII and 40D:

104 Canon_FileIndex

105 Canon_DirectoryIndex

220 Composite_FileNumber

Canon EOS 20D and 10D:

116 Canon_FileNumber
Title: Re: write Canon FileNumber not possible?
Post by: Archive on May 12, 2010, 08:54:41 AM
[Originally posted by exiftool on 2009-10-11 12:13:32-07]

All of the Canon tags are writable.  However, as you point out
for some EOS models FileNumber is a composite tag which is
derived from the values of DirectoryIndex and FileIndex.
This composite tag is not yet writable, but the DirectoryIndex
and FileIndex are each writable, and changing these will effect
the value of the Composite FileNumber tag.

There is a mechanism I can employ to make a Composite
tag writable, and to make things easier for you I will add this
feature to Composite:FileNumber. This change will appear in
exiftool 7.97 when it is released.

- Phil
Title: Re: write Canon FileNumber not possible?
Post by: Archive on May 12, 2010, 08:54:41 AM
[Originally posted by sadela on 2009-10-13 14:05:24-07]

Thanks for your quick response.

I now managed to change the FileNumber of a 40D file by writing the DirectoryIndex and FileIndex. This works fine the way you explained. I want the DirectoryIndex and FileIndex to be updated as well.

But when I try to do the same with a 5DII file from the command line, like:

Exiftool -DirectoryIndex=123 test.jpg

or

Exiftool -FileIndex=4567 test.jpg

I receive:

0 image files updated

1 image files unchanged

What can cause this difference? I think that the access rights for both the 40D and 5DII files are the same.

Sander
Title: Re: write Canon FileNumber not possible?
Post by: Archive on May 12, 2010, 08:54:41 AM
[Originally posted by exiftool on 2009-10-13 16:52:54-07]

If you don't have access rights you should get an error.  Make sure
the image contains the DirectoryIndex and FileIndex tags -- if it
doesn't, this will happen.  If it does and you can't modify them,
send me a sample and I will look into it (philharvey66 at gmail.com).

I have just released exiftool 7.97, which now has the ability
to write the Composite:FileNumber tag.

- Phil
Title: Re: write Canon FileNumber not possible?
Post by: Archive on May 12, 2010, 08:54:41 AM
[Originally posted by sadela on 2009-10-14 07:31:04-07]

The FileNumber, DirectoryIndex and FileIndex tags of the 5DII files could all be read out and had usual values but gave the message

0 image files updated

1 image files unchanged

with exiftool version 7.95.

Now with version 7.97 all above mentioned tags can be written successfully for the 40D as well as the 5DII files.

If you are still interested in the strange behaviour of the combination of version 7.95 and the 5DII files, I can send you a sample file, but for me the problem is solved with version 7.97.

Thanks again!

Sander
Title: Re: write Canon FileNumber not possible?
Post by: Archive on May 12, 2010, 08:54:41 AM
[Originally posted by exiftool on 2009-10-14 11:38:31-07]

Hi Sander,

OK, this makes sense after reading the revision history:

Oct. 2, 2009 - Version 7.96

 - Fixed problems writing some CameraInfo tags for the Canon 50D and 5DmkII

- Phil