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

Free Support Forum - aspose.com

Two questions about pictures

How would I find the actual pixel format of an image?
Presentation.Pictures[x].Image.PixelFormat always seems to return 32bppArgb
gif files even show as 32bppArgb but should be Indexed
jpegs show as 32bppArgb but should be 24bpp

How can I get the actual image format?
Presentation.Pictures[x].ImageFormat seem to always return png and jpg
gif files are always returned as png


I have requested technical team lead to answer your query. Thanks for your patience.

Hello JP,

PowerPoint ppt format can have only wmf, emf, pict, png, jpeg and dib inside.
So all your gif images converted to png.

Image.PixelFormat is a property of standard .Net framework class and Aspose.Slides doesn’t control it.

I’m a little confused by you saying that gif images are converted because I can read a ppt that contains animated gif images and when I write it back out the animation is maintain. I’m sure that png cannot do animation. It looks like the gif file is maintained in aspose but the image is reported differently.

If I cannot look at Image.PixelFormat to get the the correct color information, is there another way to get this information?