PDA

View Full Version : exif data is not displayed - solution


erdbeerbaum
08-07-2007, 12:20 PM
I had Problems with Pixelpost 1.6.0 and didn't find a solution here. The exif-Data was never dispalyed.
So i tried to find it out myself and i was successfull:

The Problem was in the functions_exif.php in the function serialize_exif():
there were many exif-tags like this one in my pictures:
["unknown:2010MakerNote"]=>
string(276) "�������0100��������� ������� �������������������������� � �����������������������W����� �(�����������
����F�� ����C�������8��� ���>��� ���^������������������������������ ������ ����"

and then the serialize() function reportet errors (also unserialize()). so i set all tags wich begin with "unknown:" to NULL and now all seems to work as wanted: exif data displayed!


this is my 'correction'':

//search vor all "unknown:*" fields beacause they make problems and then
//set them empty
foreach ($flat_exif_tmp as $key=>$value) {
$pos = strpos($key, "unknown:");
if ($pos === 0) {
$flat_exif_tmp[$key]=NULL;
}
}

insert it in functions_exif.php in line 40 i think before the following line:
foreach ($flat_exif_tmp as $key=>$value) $flat_exif_tmp[$key]=trim($value);

that helped me. i hope it helps somebody else too :)

Dkozikowski
08-07-2007, 01:39 PM
Great 1st post ;)

Thanks for sharing.

Dennis
08-07-2007, 01:44 PM
Ok, I'm quite aware the serialize and unserialize functions have problems with the makernotes. thought I set all makernotes to zero, but some pictures do still have them, this time in the unknown fields.

Thanks for the fix, could you send me some pictures for testing procedures? I'm working on a new exif routine and try to get as many pictures with different exif in them as possible.

erdbeerbaum
08-07-2007, 03:02 PM
Thanks for the fix, could you send me some pictures for testing procedures? I'm working on a new exif routine and try to get as many pictures with different exif in them as possible.

you have mail

puzzled
09-01-2007, 09:48 AM
I'm very much a novice at all this, but it sounds a lot like this post is related to the problem that I'm trying to solve by searching this forum.

Since my upgrade from v. 1.5 to 1.6, the EXIF info on my template is empty unless I manually re-upload each image. Also, the Update EXIF button in the admin interface doesn't find any images to update... the result says "updated exif from 0 images."

I just (very carefully) updated functions_exif.php with the fix posted by erdbeerbaum above, but the problem remains.

You can see the empty EXIF tags by looking at some of my older (http://www.archerfoto.com/photoblog/index.php?x=browse&pagenum=1) posts. I've manually re-uploaded the most recent five or so, and there the EXIF data is visible.

Can someone give me tips about how to make the EXIF be updated?

updated to add: Here's (http://www.archerfoto.com/photoblog/index.php?showimage=252) a specific image that I haven't re-uploaded. The missing EXIF data can be seen (haha, not seen) under comments.

puzzled
09-02-2007, 10:30 AM
Hi, I still haven't been able to figure out about the EXIF issue I posted above. Can anyone help me?

Dennis
09-02-2007, 11:09 AM
Try deleting all exif data using the addon on the addon page. Then try to repopulate the exif.

puzzled
09-02-2007, 11:30 AM
Try deleting all exif data using the addon on the addon page. Then try to repopulate the exif.

Whoooohooo, that worked!! Thank you so much!

Amy