thebuzzmedia/imgscalr — Issue #63: resize() not resizing image
Author: bgooren
Created: 2012-01-02 12:58:43+00:00
State: open

When calling resize(BufferedImage src, int targetWidth, int targetHeight, BufferedImageOp... ops) with a 200x200 image, targetWidth=200, targetHeight=80 and no ops, Scalr does not resize the image.

This is due to code on line 1599, which returns the original image if the targetWidth matches the source width and the source image is a square.
However, since the target dimension are not square, the image should be resized to fit in the targetHeight.