Hi everyone,
Here my problem.
I have to display differents sizes of thumbnails into my gallery page through a custom snippet. For now I call phpthumbof to generate them but the first web page render can be very long and even causes crashes because of a lack of memory.
Is there an elegant way (without hacking Gallery's core) to generate several thumbnails (for example one of 100x100 pixels and an other of 1024x768 pixels) once the file was uploaded ?
It could be possible if there was a kind of "OnGalleryUploadFile" plugin but such a plugin doesn't exist.
Any idea ? Did you already have the same problem ?
Thanks
If i understand you correctly, you would want the thumbnails to be generated when you upload the images? I don't have a solution unfortunately but would like to know if this is possible also. This would be a really handy feature to do all the heavy processing at the upload stage.
Regarding phpthumbof the first load could take a huge amount of time but after this the thumbs should be cached. As temporary fix you could try increasing the php memory limit with a php.ini file.
Hi Ben, good work on posting the ticket, I look forward to a response.
I have been able to set php.ini settings on my shared hosting, I only discovered this recently. I'm able to upload a php.ini file with the required settings to the relevant directory. I guess this will vary for different hosts, in my case I had to name the file .user.ini. Might be worth a look as a temporary workaround.
Back to the original post, I wonder if something could be done with OnFileManagerUpload?
@bobwal I tried, but Gallery doesn't trigger OnFileManagerUpload event. Thanks anyway.