Hi,
Tom Rogers here with my first post. I became a BC partner in 2009, and are about to close down my last site which is now here at Siteglide.
The site allows uploading of up to six images that become part of classified ads. The issue is that most of the uploads are averaging over 3MB each - way larger than needed.
The storage limits here are pretty stingy, so unless I we can figure out a way to reduce the file size, the client will end up paying extra each month.
I would like the images to be resized to a maximum size of 543 x 724, and optimized if possible as they are being uploaded. Any ideas welcome:)
Hi and welcome @Tom Rogers !
Not sure what the Siteglide team is planning for optimizing images on upload, but here's what may possibly help in the meantime:
1) Optimize all the ad images you currently have:
A free plug-in called "Image Processor Pro" will automate actions like file dimensions.
2) Going forward, in your (webapp) form that visitors can upload ad images (if I understand your use case correctly), try restricting the file size using something like parsley.js. Below are the various scripts and an example to add to your file input field that I've used, and have found helpful ...
You can get parsley.js here https://parsleyjs.org/doc/download.html
Good luck Tom :)
@Adam Cook recently mentioned that PlatformOS may have something that could possibly help your use case.
But even so, it will be Siteglide's call on if or when it will be implemented.
https://forum.siteglide.com/post/are-you-guys-planning-an-image-manipulation-capability-like-bc-i-e-action-t--5e4e1432e81cbf2382586ce3
Thank you Helen!
Unfortunately we cannot use the platformOS solutions this in all scenarios (for example images uploaded in file manager) and at it is more restrictive than we would like it to be to implement our ideal solution.
For now if these are front-end submitted items then I’d recommend@Helen Eichel javascript solution mixed with custom form validation - https://developers.siteglide.com/custom-javascript-validation-for-forms