OrdaSoft forum
Welcome, Guest
Please Login or Register.    Lost Password?
getimagesize for jpg files return empty (error) (0 viewing) 

Joomla Gallery Support

Go to bottom Favoured: 0

Getimagesize for jpg files return empty (error)

admin (Admin)
Admin
Posts: 8285
graph
User Offline Click here to see the profile of this user
getimagesize for jpg files return empty (error) 6 Years, 8 Months ago
Karma: 101  
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.
AmareMays (User)
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
Re:getimagesize for jpg files return empty (error) 4 Months, 3 Weeks ago
Karma: 0  
Thanks a bunch for sharing your insight into resolving the getimagesize error within Joomla Gallery, especially when encountering images with EXIF headers. It's fantastic to have a workaround like using exif_read_data, which can help overcome such hurdles and ensure smoother functionality. Your contribution is invaluable to the community!
Moreover, dealing with large file sizes can often be a challenge, but your suggestion to utilize jpg compress for optimization is spot-on. By compressing JPEG images, we not only improve storage efficiency but also enhance rendering performance, ultimately providing a better user experience for gallery visitors.
Logged Logged
Last Edit: 2024/03/01 14:15 By AmareMays.
The administrator has disabled public write access.
admin (Admin)
Admin
Posts: 8285
graph
User Offline Click here to see the profile of this user
Re:getimagesize for jpg files return empty (error) 4 Months, 3 Weeks ago
Karma: 101  
Hello

This post created more 6 years ago.
Now OrdaSoft Joomla Gallery correct this errors.

Now OrdaSoft Joomla gallery use image "EXIF header" for better show images

Regards
OrdaSoft team
Logged Logged
The administrator has disabled public write access.
Go to top
»