CMS MADE SIMPLE FORGE

Gallery

 

[#12613] Add width and eight of each images in database when saving

avatar
Created By: Franck DELAUNAY (forprogress)
Date Submitted: 2023-05-08 14:45

Assigned To:
Resolution: None
State: Open
Summary:
Add width and eight of each images in database when saving
Detailed Description:
Hello,

Photoswipe the most advanced/used gallery module one needs to retrieve the
dimensions of the image in the html gallery template.
getimasize ($image->file) retrieves the url of the file and this causes problems
with some hosts (ddos attack prevention).
This would work just fine if the height and width of the image were avalaibable
variables in the smarty template.

https://forum.cmsmadesimple.org/viewtopic.php?t=83586

History