Compress images

Is there a way to compress an uploaded user image before saving in a collection?

1 Like

The short answer: no

The [slightly] longer answer: You can request that an NPM compression library be added to the Wix Package Manager , and then you can handle it yourself. Do you really want to do that? As for me, I’d just as soon have a beer.

What’s the name of the library? I can’t find it!

@benibrodi
Don’t think that Yisrael was actually referring to a certain one that he would recommend for example, you are best just finding one that you would like to use and see if it is already listed as available and ready to use in the Wix Package Manager, or if not ask for it to be reviewed and possibly inserted into Wix so that you can use it.

Here are a quick few links that you can look at.
https://nodejs.org/api/zlib.html
https://blog.bitsrc.io/10-javascript-compression-tools-and-libraries-for-2019-f141a0b15414
https://www.npmjs.com/package/compression
https://alligator.io/nodejs/compression/

Thanks for the Links and infos but that’s are all plugins for compressing js or something else. I just wanna compress/resize the to big images from the customer go be smaller. Sadly there isn’t any Plugin in the WiX Package Manager.

I also looking for simple Javascript Codes to rsize the images without plugin, but corvid not allow all the classics javascript notation :-/