Hi all,
I am currently running into issues with the i.php script on a vanilla LAMP installation. The point is that we add a lot of images to our albums automatically, which will then not be present in the cache. The images are rather large (they are meant for downloading, not display - but we use the gallery for the thumbnails and metadata).
The current approach of parallel "if the image does not exist in the cache, generate a thumbnail" on LAMP will almost immediately eat all available memory and swap (in my case PHP has an allowance of 500M, with 16G available).
Calling the i.php script with different s parameters seems like a great DOS attack vector too.
I would 'fix' this for my system to return a predefined 'thumbnail currently not available' picture URL when memory is low or too many instances are running, queueing the requests for the future. But I'd like to hear if you can suggest a better solution. Calling the scripts upon import is certainly an option to generate the commonly required thumbnails, but I'd like to make sure that the script is safe enough when change happens or it is called by a client.