Closed
Description
I tried to resize pictures using the imgscalr library, code:
BufferedImage resized = Scalr.resize(original, Scalr.Method.QUALITY, newWidth, newHeight);
ImageIO.write(resized, "png", fileOut);
Using Scalr.OP_ANTIALIAS resulted in a bit blurred image, but the edges of the display remained jagged.
The original image is 500px * 500px and the result was 136px * 136px.
The same behaviour can be seen on imgscalr CDN service:
- original: http://i.imgscalr.com/oYhLECnrd.png
- resized: http://i.imgscalr.com/oYhLECnrd-S.png