EXIF info not showing up for Canon 300D?

guv
guv's picture

Joined: 2005-08-06
Posts: 31
Posted: Fri, 2005-08-12 00:06

Ive just setup Gallery2 at http://www.photoquest.co.uk/gallery2 and its all installed very easily. (Well done guys - great stuff!) :P

The only glitch that I am unable to fathom ATM is EXIF info. It has been installed and IS working. Images from my nephew have been uploaded and his display the info. Mine, taken on a 300D however dont.

Is there something in Admin I need to change or is there a problem with the info from the 300D?

Many thanks

----

Gallery URL (optional): www.photoquest.co.uk/gallery2
Gallery version:2
Webserver (with version):
Datatabase (with version):MySQL
PHP version (eg 4.2.1): 4.2.1
phpinfo URL (optional):
Graphics Toolkit(s):
Operating system: XP
Web browser/version: Opera8 IE6 Firefox1
G1 version (for migration bugs):

 
guv
guv's picture

Joined: 2005-08-06
Posts: 31
Posted: Fri, 2005-08-12 21:09

Also seems not to show up for my Canon S50 shots!

Anyone have any suggestions why? The EXIF data is definately on the files before upload!

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Fri, 2005-08-12 21:56
 
guv
guv's picture

Joined: 2005-08-06
Posts: 31
Posted: Fri, 2005-08-12 23:04

Thanks for that.

I did see this before posting - and to be honest it didnt make much sense to me! :oops:

It specifically refers to the ISO setting not getting recorded. For me, no details are extracted for either of my canon camera images.

I did download and look at the files mentioned - but I would be the first to admit its all gobbledy gook to me. ive got no problems with editing the files to suit - just dont know what changes I would need to make!

Cheers

 
decomike

Joined: 2004-11-25
Posts: 13
Posted: Tue, 2005-08-16 13:09

This is my solution after reading all the articles:

edit the file <pathToGallery2>/modules/exif/lib/exifer/makers/canon.inc

at line 177 you will find:

			$result['ISO']=hexdec(intel2Moto(substr($data,$place,4)));$place+=4;//16
				switch ($result['ISO']) {
				case 15: $result['ISO'] = "Auto"; break;
				case 16: $result['ISO'] = "50"; break;
				case 17: $result['ISO'] = "100"; break;
				case 18: $result['ISO'] = "200"; break;
				case 19: $result['ISO'] = "400"; break;
				default: $result['ISO'] = "Unknown"; break;

change that into

			$result['ISO']=hexdec(intel2Moto(substr($data,$place,4)));$place+=4;//16
				switch ($result['ISO']) {
				case 0: $result['ISO'] = $exif['SubIFD']['ISOSpeedRatings']; break;
				case 15: $result['ISO'] = "Auto"; break;
				case 16: $result['ISO'] = "50"; break;
				case 17: $result['ISO'] = "100"; break;
				case 18: $result['ISO'] = "200"; break;
				case 19: $result['ISO'] = "400"; break; 
				default: $result['ISO'] = "Unknown"; break;

You will see that this line is added
case 0: $result['ISO'] = $exif['SubIFD']['ISOSpeedRatings']; break;

This works ok for me and i'm using a Canon 10D.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Tue, 2005-08-16 16:50

Thanks decomike. Can someone try this patch with a 300D photo and let us know if it resolves the problem?

 
Ericular

Joined: 2003-05-08
Posts: 80
Posted: Tue, 2005-08-16 17:33

All of my photos are from my 300D, and I've never had any EXIF problems with G1, or any versions of G2 to date. Is it possible (if this patch doesn't help) that your photos are losing their EXIF data sometime during post-processing, before they even reach the gallery?

Just a thought,
Eric

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Tue, 2005-08-16 17:59

guv, do you use sizelimit module? What is your highest priority toolkit?
Possibly images are resized upon upload and lose the exif data in that process.. see this bug:
http://sourceforge.net/tracker/index.php?func=detail&aid=1197416&group_id=7130&atid=107130

 
guv
guv's picture

Joined: 2005-08-06
Posts: 31
Posted: Tue, 2005-08-16 19:23

I tried the canon.inc change suggested, but that didnt change anything and also just seemed to refer to the ISO setting and nothing else - so not sure if that would have made any difference anyway?

I looked at the thread mentioned. I have been using image magick to resize the pictures - and using the XP upload to website function (Mentioned in case that is a factor!)

So I changed that to NetPBM and uploaded some more images. All my images are either unedited - or touched up in photoshop or photoalbum. I uploaded a virgin image to be resized (to the highest allowed) and alas still no EXIF info shown.

I hadnt got the size limit module installed, but now have. No change!

The images on my site that use a sony or HP camera do get shown correctly so it doesnt look like its my installation itself that is a factor.

The site is located at photoquest dot co dot uk my album is "Les" and the album that is fine is "richard"

Cheers

Les

 
guv
guv's picture

Joined: 2005-08-06
Posts: 31
Posted: Tue, 2005-08-16 21:29

Just thought of something!!!!

Could anyone do me a favour and email me a canon produced picture they KNOW works fine with EXIF so I can see if that imports ok? Similarly, if you could try this pic in your own installation and see if it comes through ok?

http://www.photoquest.co.uk/canon/IMG_1883.JPG

This image is in my gallery - but without the details imported.... It could help to narrow down the issue here!

Cheers

Guv

 
guv
guv's picture

Joined: 2005-08-06
Posts: 31
Posted: Tue, 2005-08-16 22:41

Just so you can see anything in the setup that might be the cause:

Gallery version = 2.0-rc-1 core 0.9.34
PHP version = 4.3.11 cgi
Webserver = Apache/1.3.33 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635 mod_ssl/2.8.22 OpenSSL/0.9.7a PHP-CGI/0.1b
Database = mysql 4.0.25-standard
Toolkits = ArchiveUpload, Exif, ImageMagick, SquareThumb, Thumbnail, NetPBM
Operating system = Linux sixth.meinhosting.com 2.6.9-11.EL #1 Wed Jun 8 16:59:52 CDT 2005 i686
Browser = Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; en) Opera 8.0

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Wed, 2005-08-17 05:24

guv, I added your photo to my G2 and exif showed up fine, though with Unknown for ISO.. then I added the patch from above and ISO changed to 100.

Maybe try adding your photo both via XP and from-browser and compare the results.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Wed, 2005-08-17 05:35

decomike, there is no $exif in that entire file.. what is that referencing? I get an error on Edit Photo / General tab, undefined variable $exif.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Wed, 2005-08-17 05:50

guv, the link you posted above is a 3072x2048 image.. in your G2 I see it as 800x533.. that file doesn't have any exif data (according to both exifer in G2 and jhead).

 
decomike

Joined: 2004-11-25
Posts: 13
Posted: Wed, 2005-08-17 06:27

Sorry guys, my last posting (see below) gives me problems with the 'detail' exif view. I will try this morning if i can find a solution.

--------------------------------

Mindless,

I'm not really a script writer. I used the information from the patch in http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&t=18978. I think i forgot to change line 54.

//=================
// Formats Data for the data type
//====================================================================
function formatCanonData($type,$tag,$intel,$data,&$result) {

into this

//=================
// Formats Data for the data type
//====================================================================
function formatCanonData($type,$tag,$intel,$data,$exif,&$result) {

You see '$exif' is is added.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Wed, 2005-08-17 18:46

decomike, ah.. we kinda lost track of that patch. I just merged in the applicable portions and committed to cvs. thanks for reminding us about it.

 
guv
guv's picture

Joined: 2005-08-06
Posts: 31
Posted: Thu, 2005-08-18 16:39

I made the changes to the canon file as suggested above and also import via the browser instead of uploading via the XP publish method.

It has now displayed the details - but it has introduced errors...

Warning: Missing argument 6 for formatcanondata() in /home/photoque/public_html/gallery2/modules/exif/lib/exifer/makers/canon.inc on line 54

Warning: Cannot modify header information - headers already sent by (output started at /home/photoque/public_html/gallery2/modules/exif/lib/exifer/makers/canon.inc:54) in /home/photoque/public_html/gallery2/modules/core/classes/GalleryPhpVm.class on line 124

The first warning appears about 30 times!

The photo can be seen in the legoland album (Les's) and is the last photo in that gallery.

Not sure if I am getting somewhere!

Les

 
guv
guv's picture

Joined: 2005-08-06
Posts: 31
Posted: Thu, 2005-08-18 19:36

Has anyone got a fully working canon.inc EXIF file they could email me? The errors above may well be the result of poor editing on my part. I appreciate I could download Gallery2 again, extract the file and re-edit - but it would be easier/better solution if a definate working file was available!

Many thanks

Les

 
guv
guv's picture

Joined: 2005-08-06
Posts: 31
Posted: Thu, 2005-08-18 22:54

Ive just overwritten my edited canon.inc file with the original. This time, I uploaded to the same gallery mentioned above, but this time via a URL instead of using the XP publishing to the web method. This time, it has uploaded the details (minus the ISO which is registered as Auto).

So whilst I still need to edit the canon inc file so it imports the correct ISO, Ive at least found a method (albeit a slow method) to uplaod with the EXIF info.

It seems (in my system at least) their is a bug in using the XP method. Strange though, that the photos uploaded using the same way but different cameras, publish ok.

So......has anyone got a pucker working canon.inc file they could loan me?

Obviously it means I need to uplaod the whole gallery again...... but at least it now works!

Cheers

Les

 
paparaci

Joined: 2005-06-01
Posts: 21
Posted: Mon, 2005-08-22 07:43

And do your G2 show properly Subject Distance field?

Mine, with Canon 20d does not :(

http://fimp.ru/g2/main.php?g2_view=core.ShowItem&g2_itemId=4870

And yes, ISO is missing as well.. Have you got upgraded Canon.inc?

 
anderssv

Joined: 2005-09-07
Posts: 1
Posted: Sun, 2005-09-18 22:13

I too get ISO: Unknown. Using Gallery2 final with EOS 350D. Anyone got a solution?

 
robotphotos
robotphotos's picture

Joined: 2005-09-21
Posts: 111
Posted: Wed, 2005-09-21 03:29

I have photos taken with the 20D, and the Digital Rebel (supposedly the same as the 300D). The only problem I've run into with EXIF is some mild corruption after my name in the owner field. I'm using 2.0 (Unpossible). Here's a photo that's processed fine, for me:

In gallery: http://robotphotos.org/v/places/AZ/aau.jpg.html
Full size: http://robotphotos.org/d/23152-2/aau.jpg

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Wed, 2005-09-21 07:02

Gov, when you use the XP publishing thing... do you select any resize value in THERE when you upload? If you do, this means that XP itself is doing the resize and is probably dropping the EXIF info. What happens if you simply use G2's HTML form or mini-applet? The upload via URL and Path probably work for the same reason that the HTML form and mini-applet *should* work. I suspect the XP upload will work too if you DO NOT select any image size options when you use the tool. Make sense?

Like Gallery? Appreciate my help? Think I'm an asshole? Make your point by donating to the Gallery project! Or maybe just visit my website.

 
gabuzo

Joined: 2005-10-04
Posts: 1
Posted: Wed, 2005-10-05 13:42

On my EOS 20D I discover that the ISO settings can be discovered by adding this line to the switch ($result['ISO'] case:

case 32767: $result['ISO'] = $exif['SubIFD']['ISOSpeedRatings']; break;

 
Maeglin

Joined: 2005-11-14
Posts: 2
Posted: Mon, 2005-11-14 19:06
gabuzo wrote:
On my EOS 20D I discover that the ISO settings can be discovered by adding this line to the switch ($result['ISO'] case:

case 32767: $result['ISO'] = $exif['SubIFD']['ISOSpeedRatings']; break;

Confirmed (20D here as well). Something to add to the next version of the EXIF module, I guess :-)

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Wed, 2005-11-16 01:10

I updated exif module to use Exifixer 1.5 (we were on 1.4) and put in this patch as well.

 
rezdog

Joined: 2005-06-09
Posts: 12
Posted: Wed, 2005-12-14 16:38

has this made it into a production release?

I'm getting ISO:Uknown right now on a 20D, just need to know if I need to hack my canon.inc file.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2005-12-14 16:57

ther ehas been any release since 2.0 (2.0.1 and 2.0.2 were security releases, no other changes).
so you'll have to get a recent nightly snapshot if you want exifixer 1.5.
don't know if it solves your 20d issues though.

 
Maeglin

Joined: 2005-11-14
Posts: 2
Posted: Wed, 2005-12-14 16:58

If you have the latest version, it's easy enough to see if the fix is in there... just open up the file and look for a similar line in the part that pulls out the ISO value. If it's not there, add it.

If you don't have the latest version, and this is the only reason you'd have to upgrade, then the quick fix would seem to be easier.

 
rezdog

Joined: 2005-06-09
Posts: 12
Posted: Wed, 2005-12-14 18:01

I just checked my canon.inc file, and it includes the patch mentioned above. Yet, I still have ISO Unknown on my pictures. I have some albums that were imported from G1 as well as pictures I've recently published, and they both have ISO Unknown. In G1 these photos has ISO ratings. And on my PC, they have all the ISO info. But when they're uploaded I get nothing for ISO.

 
bluenova

Joined: 2006-03-21
Posts: 11
Posted: Thu, 2006-03-23 12:29
gabuzo wrote:
On my EOS 20D I discover that the ISO settings can be discovered by adding this line to the switch ($result['ISO'] case:

case 32767: $result['ISO'] = $exif['SubIFD']['ISOSpeedRatings']; break;

Confirmed this solves the problem for the 350D