In compress_image(...) line 42, min/max values for image quality and dimension are declared as constants. If for some reason we want to define these limits, they should be accessible as optional parameters for this function.
Example use case: The image size should at least be 500 pixels.
In
compress_image(...)
line 42, min/max values for image quality and dimension are declared as constants. If for some reason we want to define these limits, they should be accessible as optional parameters for this function.Example use case: The image size should at least be 500 pixels.