Exception when loading a tiff file

So I’ve successfully used the imaging api to load various image files from byte streams, re-scale them if necessary, and put them into a PDF. This was including multi-page tiff files. And of course the first tiff file my tester used threw the following exception:


"class com.aspose.imaging.exceptions.ImageLoadException: Image loading failed. —> class com.aspose.imaging.exceptions.ImageLoadException: Unable to read file. Exception: Only contiguous planar configuration is supported at the moment."

So after some research I found that there are two types of configuration for this and that the tiff file in question uses the one that isn’t supported by the api. My questions, is support for loading of tiff images in the works (perhaps soon)? Or is there some other work around that I could do in my code to support these types of images? We are hosting these images so we aren’t able to save them with the correct configuration that we know will work, so getting this supported in code would be the best option for us. Thanks!

jason
Hi Jason,

Thank you for considering Aspose APIs.

In order to reproduce the issue on our end and investigate it properly, we need the sample file. Please provide us the sample multi-page tiff file that is causing problem. Moreover, it is recommended to use the latest version for Aspose.Imaging i.e. Aspose.Imaging for Java 2.7.0.


I do indeed have the latest imaging jar file, 2.7.0.



The problem tiff file is actually not a multi-page tiff, just a single page image. I’ve got other tiff files both single and multi-page that are working just fine.



I’ve attached the tiff file that is throwing the exception for your consideration…



jason

Hi Jason,

Thank you for sharing the sample with us.

This is to update you that we have carried out the investigation on the provided sample at our end. We are able to reproduce the said issue. Please, note that the issue has been logged in our issue tracking system with ID IMAGING-34829.

We will update you accordingly. We truly appreciate your support and understanding.


The issues you have found earlier (filed as IMAGING-34829) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.

The issues you have found earlier (filed as ) have been fixed in this Aspose.Words for JasperReports 18.3 update.