Hi!
The following images are failing to load throwing the exception below. However if I try with another image it works as expected
Could you help me understand the problem of loading those images?
Images failing to load:
images.zip (4.4 MB)
Image loading as expected:
image01.jpg (89.3 KB)
try (Image image = Image.load("image.jpg")) {
BufferedImage buffImage = ImageExtensions.toJava(image);
// Some logic here
}
catch (Exception exception) {
log.error("Error: ", exception);
}
com.aspose.imaging.coreexceptions.ImageLoadException: Cannot open an image. The image file format may be not supported at the moment.
at com.aspose.imaging.Image.a(Unknown Source) ~[aspose-imaging-22.4-jdk16.jar:22.4]
at com.aspose.imaging.Image.load(Unknown Source) ~[aspose-imaging-22.4-jdk16.jar:22.4]
Hello, @juan.marques , we will request your request and answer shortly!
1 Like
@juan.marques ,
I have reviewed the attached samples of files that fail on load. Although they have JPEG extension, they are actually HEIC files. You are up to use Aspose.Imaging.HEIC.Adapter to load HEIC format.
Best regards!
1 Like
Hi, @juan.marques
But, please pay attention to that Aspose.Imaging.HEIC.Adapter is currently available only for .NET.
The version for Java is on the way but still is not available.
Hello!
Is the Java version already available?
Hello, @juan.marques !
Is the Java version already available?
Unfortunately no, but we are planning to release it in H1 2025
Hi, @juan.marques !
Let me inform you that we have released Aspose.Imaging.HEIC.Adapter for Java 25.9, Openize.HEIC for Java 25.9, and Aspose.Imaging for Java 25.9