We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

How to get the page count using aspose.imaging

how to get the page count of the loaded image using aspose.imaging ?

Hi,

Thank you for your inquiry.

This is to update you that if you are asking about TIFF image following lines of code will serve the purpose.

Aspose.Imaging for .Net API includes Aspose.Imaging.FileFormats.Tiff.TiffImage class. This can be used to get the information:

Aspose.Imaging.FileFormats.Tiff.TiffImage multiImage = (Aspose.Imaging.FileFormats.Tiff.TiffImage)Aspose.Imaging.Image.Load("sample.tif");
Console.WriteLine(multiImage.Frames.Length);

thanks for the info , but i need a something which can work for all the image formats, e.g DCH,PCX etc.

Hi,

Thank you for writing us back.

This is to update you that support for DCH, PCX is not available. These are very old formats and now are rarely used.