What I mean by this is that "Is it possible to compress image size Intelligently without specifying How much to compress Example:- https://compressjpeg.com/
Just Like How this website compress image automatically to specific image if yes then how can I do that using python?
I read hundreds of blogs regarding this but didn't find the perfect one...Really need your help :(
If the end-user does not choose how much to compress the image, then someone else does choose.
An "intelligent" function which automatically chooses the output image size is guaranteed to be a wrapper around a function for which quality must be manually specified.
To compress pictures, you can use
PIL(The Python Imaging Library).The following code outputs photographs which are almost always smaller than 24000 bytes (24 KB, or 0.024 MB):