hello chaps.
so basically ive built a script which looks through a 'pictures' directory and then lists the folders. each folder is an album. once you click one it will display all the pics in that folder. fine. except for the fact that its loading all the full images, and resizing them as thumbnails. so obviously this is running VERY slow ... especially when ive got pics that are like 3000px x 3000px ..
so the whole point of this script is that its completely automated. its running on an intranet... so people just drop their pictures into a folder in the shared area on the server... and it works. which it does. its just really slow.
so im wondering if theres any way of making thumbnails on the fly?
i know that i could have an upload script that will make the thumbnails on submit... but this isnt how it can work.
my ideas were perhaps that when the script executes on that folder and the thumbnails are not present... it will make the thumbnails and cache them. so the first time it will be a slow load... but thenafter it is fine.
or perhaps i could have a scheduled task that runs a php script every 5 minutes that checks the directories to see if they have thumbnails and if not, it creates them?
does any body have any ideas? as i dont really want people to load 100 x 3mb pictures at once... its very intensive on the network & server...
Thank you in advance :-)