2
Check for exif_read_data, Unicode user comment
5
if (!extension_loaded('exif')) die('skip exif extension not available');
6
if (!extension_loaded('mbstring')) die('skip mbstring extension not available');
7
if (!defined("EXIF_USE_MBSTRING") || !EXIF_USE_MBSTRING) die ('skip mbstring loaded by dl');
11
zlib.output_compression=0
12
exif.decode_unicode_motorola=UCS-2BE
13
exif.encode_unicode=ISO-8859-15
17
test1.jpg is a 1*1 image that does not contain any Exif/Comment information
18
test2.jpg is the same image but contains Exif/Comment information and a
19
copy of test1.jpg as a thumbnail.
20
test3.jpg is the same as test2.jpg but with a UNICODE UserComment: ÄÖ&Üßäöü
22
var_dump(exif_read_data(dirname(__FILE__).'/test3.jpg','',true,false));
37
string(10) "image/jpeg"
39
string(33) "ANY_TAG, IFD0, THUMBNAIL, COMMENT"
44
string(20) "width="1" height="1""
51
["ByteOrderMotorola"]=>
55
["UserCommentEncoding"]=>
58
string(41) "Photo (c) M.Boerger, Edited by M.Boerger."
59
["Copyright.Photographer"]=>
60
string(19) "Photo (c) M.Boerger"
61
["Copyright.Editor"]=>
62
string(20) "Edited by M.Boerger."
63
["Thumbnail.FileType"]=>
65
["Thumbnail.MimeType"]=>
66
string(10) "image/jpeg"
71
string(19) "Photo (c) M.Boerger"
77
["JPEGInterchangeFormat"]=>
79
["JPEGInterchangeFormatLength"]=>
85
string(11) "Comment #1."
87
string(11) "Comment #2."
89
string(13) "Comment #3end"
b'\\ No newline at end of file'