novitai / skycompress

Compress the image with binary search algorithm to find best fit dimension and quality
1 stars 0 forks source link

Add optional parameters for setting the setting min/max values for image quality/dimension #13

Closed LevGun closed 5 days ago

LevGun commented 1 month ago

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.

LevGun commented 5 days ago

This is not quite relevant to how we use SkyCompress