Hi all,
I am not sure if the Social Media forum is the right place for my question about serverside programming, but I will go ahead anyway.
I have a large number (thousands) of photos which I want to easily organise, by name, on my website. Programming the pages (day-by-day) is time-consuming.
I can use the glob() function in PHP to get a list of all of my JPG files in a specific sub-directory. I would like to also be able to read the dimensions for each individual photo so that I can have my PHP program write the appropriate sizing (height / width) on-the-fly.
However, I cannot seem to find a PHP function to read the dimensions. File size, yes; dimensions, no.
Is there a PHP function which I have missed, or a Javascript function, or...?
Thanks in advance.
-Mac-