#35949 [Opn->Fbk]: Bug with Panasonic and Exif
| From: | tony2001@php.net | Date: | Mon, 09 Jan 2006 18:08:15 +0000 |
| Subject: | #35949 [Opn->Fbk]: Bug with Panasonic and Exif | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-91695@lists.php.net to get a copy of this message | ||
ID: 35949
Updated by: tony2001@php.net
Reported By: pierremarie dot guillot at wanadoo dot fr
-Status: Open
+Status: Feedback
Bug Type: EXIF related
Operating System: Linux
PHP Version: 5.1.1
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5.1-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.1-win32-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2006-01-09 18:54:32] pierremarie dot guillot at wanadoo dot fr
Description:
------------
Hello,
I'm running on Debian Linux and PHP version 5.0.5. The bug
occurs with an earlier version too.
I get a Panasonic (Lumix) DMC-FZ30 digital camera.
I can read pictures from my camera with GIMP, I get exif
data in Konqueror or with exif utility.
However when I want to extract Exif data with PHP the
exif_read_data function tell me that it's not unable to
read my file.
Thanks a lot for your work.
Bye.
Reproduce code:
---------------
<?php
echo "essai.jpg:<br />\n";
$exif = exif_read_data('essai.jpg', 'IFD0');
echo $exif===false ? "No header data found.<br />\n" : "Image contains
headers<br />\n";
$exif = exif_read_data('essai.jpg', 0, true);
echo "essai.jpg:<br />\n";
foreach ($exif as $key => $section) {
foreach ($section as $name => $val) {
echo "$key.$name: $val<br />\n";
}
}
?>
Expected result:
----------------
Extracted data with exif utility :
pierre@gunnm:~/devel/web/myphoto/site$ exif essai.jpg
EXIF tags in 'essai.jpg' ('Intel' byte order):
--------------------+----------------------------------------------------------
Tag |Value
--------------------+----------------------------------------------------------
Constructeur |Panasonic
Modèle |DMC-FZ30
Orientation |haut - gauche
x-résolution |72,00
y-résolution |72,00
Unité de la résoluti|pouces
Logiciel |Ver.1.0
Date et heure |2005:12:25 00:20:44
Positionnement YCbCr|co-sited
Compression |Compression JPEG
Orientation |haut - gauche
x-résolution |72,00
y-résolution |72,00
Unité de la résoluti|pouces
Positionnement YCbCr|co-sited
Temps d'exposition |1/4 sec.
FNumber |f/3,2
ExposureProgram |Programme normal
ISO Speed Ratings |200
Version d'exif |Exif Version 2.2
Date et heure (origi|2005:12:25 00:20:44
Date et heure (numér|2005:12:25 00:20:44
ComponentsConfigurat|Y Cb Cr -
Bits compressés par |4,00
Exposure Bias |0,0
MaxApertureValue |3,00
Mode de mesure |Motif
Source lumineuse |0
Flash |Flash did not fire, compulsatory
flash mode.
Longueur focale |13,8 mm
Note du créateur |5722 de données inconnues
FlashPixVersion |FlashPix Version 1.0
Espace des couleurs |sRGB
PixelXDimension |3264
PixelYDimension |2448
Sensing Method |One-chip color area sensor
Source du fichier |DSC
Type de scène |
Rendu personnalisé |Processus normal
Mode d'exposition |Exposition automatique
Balance des blancs |Balance des blancs automatique
Valeur du zoom numér|0,00
Longueur focale dans|65
Type de capture de l|Standard
Contrôle du gain |Low gain up
Contraste |Normal
Saturation |Normal
Netteté |Normal
InteroperabilityInde|R98
InteroperabilityVers|
--------------------+----------------------------------------------------------
Actual result:
--------------
essai.jpg:
Warning: exif_read_data() [function.exif-read-data]:
Unable to open file
in /home/pierre/devel/web/myphoto/site/index.php on line 5
No header data found.
Warning: exif_read_data() [function.exif-read-data]:
Unable to open file
in /home/pierre/devel/web/myphoto/site/index.php on line 8
essai.jpg:
Warning: Invalid argument supplied for foreach()
in /home/pierre/devel/web/myphoto/site/index.php on line
10
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35949&edit=1