We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

The picture is resized and the effect is very poor and blurry

public void test1(){
Image image = Image.load("/Users/zyx/Downloads/Super-model-32-jpg-png.png");
if (!image.isCached()) {
image.cacheData();
}
image.resizeWidthProportionally(240, ResizeType.Bell);
image.save("/Users/zyx/Desktop/Super-model-3222bell.png");

}

jdk 1.8

com.aspose aspose-imaging 21.7 jdk16 Super-model-32-jpg-png.jpg (182.3 KB)

Super-model-32bell.jpg (21.6 KB)

@zyx

I have observed the issue shared and have created a ticket with ID IMAGINGJAVA-7901 in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be notified once the issue will be fixed.

@zyx
First of all, it should be noted that the specified behavior of the library is not an error.
The customer gets exactly what he orders.

Firstly, he reduces the image by more than 3 times, which of course entails a loss of quality.
Secondly, he uses the Resize Type.Bell method, which tries to smooth out the decrease in quality, which leads to the blur effect.

If he needs to get an image with minimal distortion, you should try other methods of ResizeType, for example
HighQualityResample
CubicBSpline
BilinearResample

Read more here https://reference.aspose.com/imaging/java/com.aspose.imaging/resizetype

For example, you can offer the following code

try (Image image = Image.load("/Users/zyx/Downloads/Super-model-32-jpg-png.png"))
{
    image.resizeWidthProportionally(240, ResizeType.HighQualityResample);
    image.save("/Users/zyx/Desktop/Super-model-HighQualityResample.png");
}