Hi,
We are using Aspose.Slides for Java (version 26.4, classifier jdk16) in a batch process that converts PPTX files to PDF. For one specific customer file, loading the presentation fails with the following exception:
class com.aspose.slides.PptxReadException: Found inconsistency in image data. The image data contained has incorrect pixels count. —> class com.aspose.slides.internal.v7i.i6: Found inconsistency in image data. The image data contained has incorrect pixels count.
com.aspose.slides.internal.v8r.c2$c2.i6(Unknown Source)
com.aspose.slides.internal.s4x.i2.i6(Unknown Source)
com.aspose.slides.internal.s4x.i2.i6(Unknown Source)
com.aspose.slides.internal.s4x.i2.i6(Unknown Source)
com.aspose.slides.internal.v8r.c2.i6(Unknown Source)
com.aspose.slides.internal.v8r.c2.i6(Unknown Source)
com.aspose.slides.internal.s4x.q6$c2.i6(Unknown Source)
com.aspose.slides.internal.s4x.i2.i6(Unknown Source)
com.aspose.slides.internal.s4x.i2.i6(Unknown Source)
com.aspose.slides.internal.s4x.i2.i6(Unknown Source)
com.aspose.slides.internal.s4x.q6.c2(Unknown Source)
com.aspose.slides.internal.s4x.q6.i6(Unknown Source)
com.aspose.slides.internal.s4x.q6.i6(Unknown Source)
com.aspose.slides.internal.s4x.q6.c2(Unknown Source)
com.aspose.slides.internal.s4x.q6.e2(Unknown Source)
com.aspose.slides.internal.f6d.i6.i6(Unknown Source)
com.aspose.slides.internal.f6d.c2.read(Unknown Source)
java.desktop/javax.imageio.ImageReader.read(Unknown Source)
com.aspose.slides.internal.b9r.i6.i6(Unknown Source)
com.aspose.slides.internal.b9r.i6.q1(Unknown Source)
com.aspose.slides.internal.l1b.p4.i6(Unknown Source)
com.aspose.slides.internal.l1b.p4.(Unknown Source)
com.aspose.slides.internal.l1b.p4.(Unknown Source)
com.aspose.slides.internal.l1b.i2.i6(Unknown Source)
com.aspose.slides.internal.l1b.i2.i6(Unknown Source)
com.aspose.slides.internal.l1b.i2.i6(Unknown Source)
com.aspose.slides.internal.q1z.m9.f4(Unknown Source)
com.aspose.slides.PictureFrame.i1(Unknown Source)
com.aspose.slides.j0r.i6(Unknown Source)
com.aspose.slides.j9b.i6(Unknown Source)
com.aspose.slides.j9b.i6(Unknown Source)
com.aspose.slides.h0.i6(Unknown Source)
com.aspose.slides.t6i.i6(Unknown Source)
com.aspose.slides.h7h.i6(Unknown Source)
com.aspose.slides.r6r.k2(Unknown Source)
com.aspose.slides.r6r.i6(Unknown Source)
com.aspose.slides.Presentation.p4(Unknown Source)
com.aspose.slides.Presentation.i6(Unknown Source)
com.aspose.slides.Presentation.i6(Unknown Source)
com.aspose.slides.Presentation.(Unknown Source)
The exception is thrown directly from the Presentation constructor:
presentation = new Presentation(inputFilePath.toString(), loadOptions);
We are not passing any special LoadOptions other than font mapping related settings.
Unfortunately, we are not able to share the source PPTX file itself, since it contains a customer’s confidential/private data and we are not permitted to upload it externally for security reasons.
Our main questions are:
-
Is this a known issue with a specific class of malformed/corrupted image data (e.g. a JPEG with an incorrect pixel count in its header) that Aspose.Slides is unable to tolerate?
-
Is there any
LoadOptionssetting, or any other supported API (e.g.IResourceLoadingCallback), that would let us skip or tolerate this specific embedded image failure duringPresentationloading, rather than the whole file failing to load? -
Has this been fixed or improved in a newer version of Aspose.Slides for Java after 26.4?
Thanks in advance for any guidance.