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 :)
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 :)