rkalla / imgscalr

Simple Java image-scaling library implementing Chris Campbell's incremental scaling algorithm as well as Java2D's "best-practices" image-scaling techniques.
Apache License 2.0
1.23k stars 243 forks source link

I have some question about Scalr method #116

Open iamgique opened 8 years ago

iamgique commented 8 years ago

I have some question, How do I set image quality percent for compress an image.

I've just use resize method with these args (SPEED, BALANCED, QUALITY and ULTRA_QUALITY) but I'm not sure how many quality of image after compress.

rmuller commented 8 years ago

The scalr resize(...) methods return a BufferedImage. For this, compression quality is not relevant. Compression quality is supported by some file formats (like JPEG) and has to be set when the image is saved.