PHP exif_read_data不返回方向

时间:2017-04-19 06:16:03

标签: php

我正在使用exif_read_data,但它没有返回图像方向。以下是我的代码:

$path = base_url()."assets/procedure_logo/".$procedure_logo;
print_r($path);
$exif = exif_read_data($path,"FILE,COMPUTED,ANY_TAG,IFD0,THUMBNAIL,COMMENT,EXIF", true);
print_r($exif); die();

打印路径,我得到像

这样的完整路径

http://www.ilockitout.net/assets/procedure_logo/12848C457-0482-495A-8756-038C9B7980501344008487.JPG

当我打印$exif时,我得到了这样的数组:

Array
(
[FILE] => Array
    (
        [FileName] => 12848C457-0482-495A-8756-038C9B7980501344008487.JPG
        [FileDateTime] => 0
        [FileSize] => 25770
        [FileType] => 2
        [MimeType] => image/jpeg
        [SectionsFound] => COMMENT
    )

[COMPUTED] => Array
    (
        [html] => width="640" height="480"
        [Height] => 480
        [Width] => 640
        [IsColor] => 1
    )

[COMMENT] => Array
    (
        [0] => CREATOR: gd-jpeg v1.0 (using IJG JPEG v80), quality = 50

    )

 )

0 个答案:

没有答案