One thought: if you're going to do client side resampling, it might be best to make this configurable in the case that someone wants their photo to be uploaded unchanged (e.g. photography forum, technical forum uploading a huge diagram etc.) - I originally tested this stuff with 20MB JPEG files (required 350MB RAM to resize on the server) because one of the original users wanted their paid commission art to be uploaded without changes.
Sorry you had to fix strict mode stuff... but in 2014 when this was written, strict mode wasn't a thing
Last post by Spuds -
I updated the first post with todays updates.
This new version adds the Image resize function. There is a option under the admin quota area, which, when enabled, will resize any images (jpg, png) to fit within the defined quota WxH limits instead or rejecting them. Once resized it will still honor other limits and reject if its still over those.
One note is that if using GD you will loose Exif data for any images that get resized. If you have Imagick then the data is retained.
There were a couple of other minor tweaks as well.
Last post by Spuds -
I have not removed anything as of yet. Certainly no problem keeping that file in place or whatever else you need.
The TP support was clean, it was the SP support used an eval() due to the way SP worked on SMF, but it was not needed for the Elk version, plus the Elk version already had an (unused) gallery block that I could finally actually use!
Hi, Thanks for this new update. I installed it on 2 elkarte and get each time the same error that is ignored : [ admin Aujourd'hui à 15:26:50 6b729d134a5ac7b47kwVHWpiBMOopqjR Type d'erreur: Générale Unknown Error: Invalid characters passed for attempted conversion, these have been ignored https://augras.eu/forum_zwii/index.php?action=admin;area=packages;sa=install;package=Patch_117.zip Fichier: /home/augras/public_html/augras.eu/forum_zwii/sources/subs/Package.subs.php Ligne: 2929 I made a quick take a look and no other errors and everything seems to work : i will make better "tests" in the next days.Philippe
I updated the patch today and this gift is still here. On the line 2929 there is : // Make sure we have a form of 0777 or '777' or '0777' so its safe for intval '8'