Works with different formats:
png, jpeg, svg, webp
The best results are on large images.
For example you could get a 2MB png image and compress it to a 700KB image (the final size varies) and you will barely notice the difference between this two images.
Set compress quality from 0 to 1
Set Max width and height - if the image is bigger, it will be resized to fit given values.
For example you don’t need a 4k resolution with size of 5mb for an image that is used for user’s avatar.
Set Max file size for PNG files - If the file is bigger then it will be converted to jpeg and therefore compressed.
I have been using the plugin for a few weeks, but all of a sudden it stopped working. When I open the console, it looks like Compressor is not defined on my page anymore.
The image compressor is central to my web app. I am not too sure on how to proceed.
Yes it is visible. I “fix” the problem by globally importing the library i.e.<script src="https://cdnjs.cloudflare.com/ajax/libs/compressorjs/1.0.6/compressor.min.js"/>. It did the same thing with one of my personal library i.e. the local import did not work and I had to import the library globally.
I have ping bubble and see if they can figure it out.
This plugin looks amazing and could perfectly answer my needs. Could you please let me know if the compressed / resized images have then their own url so that my users can use them for social media purpose?
I find a way to compress and resize images to fit some of the social networks requirements.