OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?
getimagesize for jpg files return empty (error) (0 viewing) 
OS Responsive Image Gallery module Support
Go to bottom Favoured: 0
TOPIC: getimagesize for jpg files return empty (error)
#35275
admin (Admin)
Admin
Posts: 5356
graph
User Offline Click here to see the profile of this user
getimagesize for jpg files return empty (error) 1 Month, 1 Week ago Karma: 66  
Soem images have EXIF header, and for so images getimagesize - return error.

You need replace

$info = getimagesize("path_to_image", $imageinfo);

to
$exif = exif_read_data("path_to_image", 0, true);

Regards
Andrew
Ordasoft team
 
Logged Logged  
  The administrator has disabled public write access.
Go to top
What are you looking for?
Anti-spam question: How many eyes has a typical person?