Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/259.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/codeigniter/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 读取exif数据未显示正确的数据_Php_Codeigniter - Fatal编程技术网

Php 读取exif数据未显示正确的数据

Php 读取exif数据未显示正确的数据,php,codeigniter,Php,Codeigniter,我正在使用read\u exif\u data函数获取上传图像的详细信息,但在某些情况下数据无法正确显示。 我正在共享分辨率小于1的图像的输出 Array ( [FileName] => 1444195025.jpg [FileDateTime] => 1444195025 [FileSize] => 1777209 [FileType] => 2 [MimeType] => image/jpeg [SectionsFound] => ANY_TAG, IFD

我正在使用
read\u exif\u data
函数获取上传图像的详细信息,但在某些情况下数据无法正确显示。 我正在共享分辨率小于1的图像的输出

Array
(
[FileName] => 1444195025.jpg
[FileDateTime] => 1444195025
[FileSize] => 1777209
[FileType] => 2
[MimeType] => image/jpeg
[SectionsFound] => ANY_TAG, IFD0, THUMBNAIL, EXIF
[COMPUTED] => Array
    (
        [html] => width="1893" height="1494"
        [Height] => 1494
        [Width] => 1893
        [IsColor] => 1
        [ByteOrderMotorola] => 0
        [Copyright] =>

    )

[ImageWidth] => 1893
[ImageLength] => 1494
[BitsPerSample] => 8
[Compression] => 1
[PhotometricInterpretation] => 1
[ImageDescription] =>
[Orientation] => 1
[SamplesPerPixel] => 1
**[XResolution] => 1/316
[YResolution] => 372/283465**
[ResolutionUnit] => 3
[Software] => '
[DateTime] => 5.1 Windows
[Artist] => 03 23:26:03
[Copyright] =>
[Exif_IFD_Pointer] => 316
[THUMBNAIL] => Array
    (
        [Compression] => 6
        [XResolution] => 72/1
        [YResolution] => 72/1
        [ResolutionUnit] => 2
        [JPEGInterchangeFormat] => 466
        [JPEGInterchangeFormatLength] => 8382
    )

[ExifVersion] => 0221
[ColorSpace] => 1
[ExifImageWidth] => 1893
[ExifImageLength] => 1494
 )

我对图像的
分辨率小于1
而图像大小约为
1.8MB
感到困惑。我正在使用codeigniter框架。

您能告诉我们您的代码在哪里使用此功能吗?