JPG images failing to load

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

Thank you @Denis.Sitko

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.