Free Support Forum - aspose.com

Getting Compression Type of Tiff Image - Aspose Imaging for Java


#1

https://docs.aspose.com/display/imagingnet/Aspose.Imaging+for+.NET+18.7+-+Release+Notes

I see that you can retrieve the compression type for tiff image with the .Net API, can we do the same thing with Java?


#2

@drakegens,

I have observed your comments. Please try to use below code to achieve your requirements.

TiffImage image = (TiffImage)Image.load(“CCITTFax4.tif”);
try
{
for (TiffFrame frame : image.getFrames())
{
System.out.println("compression = " + TiffCompressions.getName(TiffCompressions.class, frame.getFrameOptions().getCompression()));
}
}
finally
{
image.close();
}