Good day! In php there is a function exif_read_data , which should give information about the image. When processing an image downloaded from a smartphone, the function does not return IFD0 . What could be the problem? I call this:

 $source = exif_read_data('../files/ogorod/3189.jpg', 0, true); print_r($source) ; 

Result:

 Array ( [FILE] => Array ( [FileName] => 3189.jpg [FileDateTime] => 1486467789 [FileSize] => 68085 [FileType] => 2 [MimeType] => image/jpeg [SectionsFound] => COMMENT ) [COMPUTED] => Array ( [html] => width="1000" height="750" [Height] => 750 [Width] => 1000 [IsColor] => 1 ) [COMMENT] => Array ( [0] => CREATOR: gd-jpeg v1.0 (using IJG JPEG v80), quality = 70 ) ) 
  • tried to explicitly indicate to read IFD0 ? - teran
  • are you sure that the image accurately contains this data - teran
  • yes, I also tried it, empty answer $ source = exif_read_data ('../ files / ogorod / 3189.jpg', 'IFD0'); - wstudiokiwi
  • The image is made from a smartphone 100% by me, I think that when move_uploaded_file data is not lost. - wstudiokiwi

1 answer 1

Understood. After move_uploaded_file there was a resize of the image, so the IFD0 data was lost. Thanks to all.