Focal Length in Exif Information

MacWilliam
MacWilliam's picture

Joined: 2005-04-16
Posts: 33
Posted: Mon, 2005-04-25 17:46

Gallery 1.4.4pl4 displays in photo properties:

E.g.: Focal length : 77.0mm (35mm equivalent: 319mm)

This is incorrect. The focal length of the lens was 77.0mm.
The 35mm equivalent should be 1.6 x 77.0mm = 123mm.
(1.6 because of the crop factor of the camera).

Is this a setting somewhere?

Complete photo properties are:

File size : 169236 bytes
File date : 2005:04:22 11:30:54
Camera make : Canon
Camera model : Canon EOS 300D DIGITAL
Date/Time : 2004:09:20 18:17:32
Resolution : 787 x 1145
Flash used : No
Focal length : 77.0mm (35mm equivalent: 319mm)
CCD Width : 8.44mm
Exposure time : 0.008 s (1/125)
Aperture : f/6.3
ISO equiv. : 200
Metering Mode : matrix
Jpeg process : Baseline

 
Tim_j
Tim_j's picture

Joined: 2002-08-15
Posts: 6818
Posted: Mon, 2005-04-25 18:02

Hello,

Gallery just get the data.
If its wrong it was written wrong.

Regards,

Jens

 
MacWilliam
MacWilliam's picture

Joined: 2005-04-16
Posts: 33
Posted: Mon, 2005-04-25 18:25
Tim_j wrote:
Hello,

Gallery just get the data.
If its wrong it was written wrong.

Regards,

Jens

Hi Jens,
Thanks for your reply.
Correct: it was written wrong, but where?

The calculation from the lens focal lenght (FL) to the 35mm equivalent must be based on the chip size: thus model / make.

50mm FL on a Canon 300D has a crop factor of 1.6, thus the 35mm equivalent is 80mm
With a Canon Powershot G6 a FL of 16mm equals a 35mm FL 80mm

The Exif version 2.2 holds only one value. The 35mm equivalent is calulated somewhere on the server. This piece of software assumes that I have a compact camera because of the wide angle.

With some other photo it says:
Focal length : 108.0mm (35mm equivalent: 191mm)
This is also not correct, because the 35mm equivalent should be:
1.6 x 108 = 173mm, but only because this camera has 1.6 crop factor.

Is there a setting somewhere?

Thanks again.

 
MacWilliam
MacWilliam's picture

Joined: 2005-04-16
Posts: 33
Posted: Tue, 2005-04-26 17:47
MacWilliam wrote:
Gallery 1.4.4pl4 displays in photo properties:

E.g.: Focal length : 77.0mm (35mm equivalent: 319mm)

This is incorrect. The focal length of the lens was 77.0mm.
The 35mm equivalent should be 1.6 x 77.0mm = 123mm.
(1.6 because of the crop factor of the camera).

Or any idea how I can edit the which is show in the Photo properties / remove the 35mm equivalent.

Thanks for your help.

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Tue, 2005-04-26 18:00

Well, the only way of fixing that is to edit the exif info in the actual photo. Thats where Gallery gets the info from.

 
MacWilliam
MacWilliam's picture

Joined: 2005-04-16
Posts: 33
Posted: Tue, 2005-04-26 18:09
h0bbel wrote:
Well, the only way of fixing that is to edit the exif info in the actual photo. Thats where Gallery gets the info from.

Thanks for you reply.
The EXIF of the actual photo holds the Focal Lenght, but NOT the 35mm equivalent. It's added somewhere, after the upload.
(There is more added: The "file date" is also not in the EXIF.)

Any idea what I can do about it, because the info about the 35mm equivalent is incorrect.

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Tue, 2005-04-26 18:18

MacWilliam, Gallery does no conversion of any of the exif data. Thats up to the binary file that extracts it from the picture. If you run Gallery 1.5, it also supports exiftools as well as jhead. Perhaps give that a try?

Gallery relies on whatever info the toolkit provides, so there is nothing we can do about what data is returned. If jhead is indeed reporting the wrong data, you should file a bug report with the jhead developer.

 
MacWilliam
MacWilliam's picture

Joined: 2005-04-16
Posts: 33
Posted: Tue, 2005-04-26 18:37

Thanks H0bbel,

I'm using Gallery 1.4.4pl4.
As I understand I should check jhead.

 
MacWilliam
MacWilliam's picture

Joined: 2005-04-16
Posts: 33
Posted: Tue, 2005-04-26 18:56
MacWilliam wrote:
Thanks H0bbel,

I'm using Gallery 1.4.4pl4.
As I understand I should check jhead.

This is what Jhead says about it:
"Some Canon digital SLR cameras fail to encode the effective sensor resolution when shooting at less than full resolution, causing jhead to incorrectly miscalculate the 35mm equivalent focal length. Jhead usually gets blamed for this bug, but it is in fact a camera bug, and jhead can't do much about it"

OK, now I know where it is .... just have to find a solution ...

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Tue, 2005-04-26 20:46

There we go, nothing anyone can _really_ do about it, it seems. :(
Hope I won't run into that when I get my new 350D...

 
MacWilliam
MacWilliam's picture

Joined: 2005-04-16
Posts: 33
Posted: Wed, 2005-04-27 18:27

H0bbel. I guess this will be the case for every 350D ...

According to the maker of Jhead (Matthias Wandel) there is no way to solve this in Jhead.
"No, there isn't a way in jhead. Maybe gallery can be set to ingore it for certain makes of camra."

Is there a way that I can manipulate which information is shown in "photo properties" and thus remove the 35mm equivalent.
Can I manipulate the photo properties CSS and put this text in the background color?

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Wed, 2005-04-27 20:16

MacWilliam, I'm sure that there are ways to manipulate the data when it's entered into the Gallery cache. I suggest you ask in the customizations forum, hopefully someone there can help you out.

Did you try to use exiftools instead? Does it generate the same result?

 
MacWilliam
MacWilliam's picture

Joined: 2005-04-16
Posts: 33
Posted: Thu, 2005-04-28 18:41

Hi H0bbel,
I would like to try Exiftools and have found it.
(http://owl.phy.queensu.ca/~phil/exiftool/),
but I have no idea how to install this.

I'm new in Gallery and servers (just a simple Mac user).

Some hints would be very much appreciated.

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Thu, 2005-04-28 19:19

My bad, it's exiftags ( http://johnst.org/sw/exiftags/ )

 
MacWilliam
MacWilliam's picture

Joined: 2005-04-16
Posts: 33
Posted: Thu, 2005-04-28 19:28

Hi H0bbel,

Thanks. I've downloaded this "exiftags-1.00.tar.gz" and it contains a folder loaded with documents. It isn't just a binary which I can put in my \bin folder.

I've read the included "read me" but it's not clear to me how to get this working.

Some hints on how to proceed would be very much appreciated.

 
Jordan_01002

Joined: 2005-02-14
Posts: 1535
Posted: Thu, 2005-04-28 19:42

Download the tarball (note the correct usage this time, h0bbel... :P) and extract it using tar xfz exiftags-1.00.tar.gz
cd into the new directory it makes (exiftags-1.00) and type make wait for it to compile, then type make install

It oughta stick the new files (exiftags, exifcom, exiftime) into /usr/local/bin (at least, that's where they went in my distro).

 
MacWilliam
MacWilliam's picture

Joined: 2005-04-16
Posts: 33
Posted: Thu, 2005-04-28 19:58

Thanks H0bbel for your help.
I guess I need shell access to my server for that.
I'm still figuring out how to do that.
I'm on a Mac and did everything with Gallery by browser or ftp until this moment.

Although the Mac OS X system is running BSD and I've got a terminal console on it, I have no clue about Unix.

I can always ask the hosting webmaster to do this for me ...

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Thu, 2005-04-28 20:09

MacWilliam, I used the rpm files, so I don't know how to compile it. Not on OSX. http://exiftags.darwinports.com/ looks like there is a version available though.

 
MacWilliam
MacWilliam's picture

Joined: 2005-04-16
Posts: 33
Posted: Thu, 2005-04-28 20:18

Thanks again.

The rpm files open Realplayer with me ;-)

Yep, it describes how to install it on my Mac.
I could run my Mac as a webserver then I guess.

I've entered a question in the Apple Discussions Forum on how to get shell acces from my Mac on the webserver. This is what I need I guess.

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Thu, 2005-04-28 21:02

I asumed you ran it on a max, since you mentioned it. If not, ask your host if they can install it for you, as it doesn't seem like there are any precompiled, static, binaries of exiftags available.

 
MacWilliam
MacWilliam's picture

Joined: 2005-04-16
Posts: 33
Posted: Thu, 2005-04-28 21:11

Thanks !