News:

2023-08-10 - ExifTool version 12.65 released

Main Menu

Canon E40D

Started by Archive, May 12, 2010, 08:54:17 AM

Previous topic - Next topic

Archive

[Originally posted by hbonnin on 2008-03-25 19:01:14-07]

I do appreciate very much exiftool, which seems the only one succeeding to read nearly all the exif of my EOS 40d pictures.
The php exifreader has a fatal error (or a warning), jhead complains (Illegal number of components 131166 for tag 0000), exiv2 ( Makernote tag 0x0000 has invalid Exif type 0; using 7).
After many trials, it seems that there is something wrong with the contrast field. If I modify the contrast value with exfitool (which gives me a warning [minor]), all the mentioned programs work without complains. My goal is that php can interpret the canon exif header.
I would like to know if Canon wrote a buggy exif header,which seems the case as I suppose, but I may be wrong, that one could read an exif header without knowing the contents.
Another question, can you modify few tags at the same time, on one command line (to ease scripting)?
Many thanks for your very nice program.

Hubert

Archive

[Originally posted by exiftool on 2008-03-25 22:17:19-07]

Hi Hubert,

Yes, of coarse you can change as many tags as you
want on a single command line.  There is a bug
in some versions of the 40D firmware that can
cause problems for some exit readers, but I would
have thought that writing any exit with exiftool
would fix the problem. See the version history
for some more comments about this 40D
problem. - Phil

Archive

[Originally posted by boels069 on 2008-03-26 06:11:54-07]

Visit http://www.canon.com/eos-d/" target="_blank">http://www.canon.com/eos-d/ and check the firmware version :-)

Archive

[Originally posted by hbonnin on 2008-03-26 10:05:07-07]

Hi Phil,
Thank you for your quick answer. My firmware is 1.04 (and I shall upgrade it to 1.05) but on Canon site they say nothing about a correction of an exif error.
The message exiftool is "Warning: [minor] Removed 1 invalid entry from MakerNotes - a.jpg" (which field, which tag ?)
You are right that changing any field solve the problem.
... And I can also modify different fields at once (I badly escaped a character in my shell script).
Thank again for your help.
Hubert

Archive

[Originally posted by exiftool on 2008-03-26 11:15:54-07]

Hi Hubert,

Yes, the bug was introduced in firmware 1.0.4.  The problem is that
Canon removed one of the entries (tag 0x0028, currently unknown)
and forgot to decrement the entry count.  So it looks like there is one
invalid entry in the directory (which exiftool removes when writing),
but in fact the entry is just missing and the entry count is wrong.

This problem is fixed in firmware 1.0.5 CR2 images, but I don't have
a 1.0.5 JPEG sample so I can't say if it is fixed in the JPEG's too.

- Phil

Archive

[Originally posted by hbonnin on 2008-03-26 16:03:34-07]

Hi Phil,
The firmware 1.0.5 did solve all my problems and I get exactly the same fields as with firmware 1.04.
That is not really important, but I do not succeed to, in one command line, change a field and extract a thumbnail.
exiftool -b -q -overwrite_original_in_place -Comment="comment"  -ThumbnailImage img.jpg > tn.jpg
Thank you for your help.

Hubert

Archive

[Originally posted by exiftool on 2008-03-26 16:37:33-07]

Hi Hubert,

Reading and writing operations must be performed in different
commands.  The exiftool application has two modes: read
and write, and the only way to switch between them is to
execute them as separate commands.  However, the exiftool
-execute option allows you to execute multiple
commands on a single command line if you really feel the need
to do this.  Here your piping might be a bit tricky because you
don't want to pipe the output from both commands, so for this
it may be best to use the -w option instead of the pipe.
There really isn't much advantage to combining read and write
operations into a single command line, but here is a line that
would do it:

exiftool -b -thumbnailimage -w _tn.jpg -execute -overwrite_original_in_place -comment="comment" -common_args img.jpg


This will create a thumbnail called "img_tn.jpg" then add the comments to img.jpg.

- Phil

Archive

[Originally posted by hbonnin on 2008-03-26 17:50:31-07]

Hi Phil,

For some reason, that command line does not work on my computer (no thumbnail created)
linux, perl-5.8.8, exiftool-7.22.
exiftool -b -thumbnailimage -w _tn.jpg -execute -overwrite_original_in_place -comment="comment" -common_args img.jpg
But
exiftool -b -thumbnailimage -w _tn.jpg img.jpg works of course.
But as you said, I can use two lines.

Many thanks for all your help
Hubert

Archive

[Originally posted by exiftool on 2008-03-26 18:10:04-07]

Interesting.  My web server just happens to be running the
same system and Perl version as you, but it works for me:

Code:
[14:40 phil@owl:~/tmp]$ uname -smr
Linux 2.6.18-53.1.13.el5 i686

[14:40 phil@owl:~/tmp]$ exiftool -ver
7.22

[14:40 phil@owl:~/tmp]$ perl -ver

This is perl, v5.8.8 built for i386-linux-thread-multi

Copyright 1987-2006, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

[14:40 phil@owl:~/tmp]$ ls -l
total 1612
-rw-r--r-- 1 phil sno 1644158 Jan 18  2005 img.jpg

[14:40 phil@owl:~/tmp]$ exiftool -b -thumbnailimage -w _tn.jpg -execute -overwrite_original_in_place -comment="comment" -common_args img.jpg
    1 image files updated

[14:41 phil@owl:~/tmp]$ ls -l
total 1620
-rw-r--r-- 1 phil sno 1644169 Mar 26 14:41 img.jpg
-rw-r--r-- 1 phil sno    7680 Mar 26 14:41 img_tn.jpg

[14:41 phil@owl:~/tmp]$

- Phil

Archive

[Originally posted by hbonnin on 2008-03-26 18:33:10-07]

Dear Pil,

I am going out now. But some precisions on my system:

uname -smr

Linux 2.6.17-5mdv i686

perl -ver

This is perl, v5.8.8 built for i386-linux

(with 1 registered patch, see perl -V for more detail)

Copyright 1987-2006, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the

GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on

this system using "man perl" or "perldoc perl".  If you have access to the

Internet, point your browser at http://www.perl.org/" target="_blank">http://www.perl.org/, the Perl Home Page.

I saw that the files downloaded using cpan are not the same as the ones I downloaded from yous site
and installed.

"exiftool -b -thumbnailimage -w _tn.jpg -execute -overwrite_original_in_plac +e -comment="comment" -common_args img.jpg" gives me no message at all (and no thumbnail).

Best regards,

Hubert

Archive

[Originally posted by hbonnin on 2008-03-27 14:11:43-07]

Dear Phil,

I am very sorry, your command does work. I was using an older version of exiftool with the new library (so the version showed 7.22 whatever exiftool I was launching).

Thank you for all your help

Hubert

Archive

[Originally posted by exiftool on 2008-03-27 14:25:20-07]

I'm glad you figured this one out. https://exiftool.org/forum/Smileys/default/smiley.gif" alt="Smiley" border="0" />