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 244 forks source link

Ensure that TargetHeight is not zero #109

Closed sidheshenator closed 8 years ago

sidheshenator commented 9 years ago

In case of small value of ratio, the TargetHeight may become zero and cause problem while instantiating BufferedImage.

rkalla commented 8 years ago

Thank you for the pull request!