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

Free Support Forum - aspose.com

GIF-File

Hi,

is it possible to extract gif-files (animation) out of a ppt-presentation?

regards

Dear Tobias,

I will let you know after some experimentation.

Dear Tobias,

Animation is lost when we extract the GIF image, below is the code how to do it. We will investigate and fix it as soon as possible.

//Open the presentation, it has only a single slide

//with a single GIF animated image

Presentation srcPres = new Presentation(@"c:\pres.ppt");

//Get the only GIF image inside the presentation

Picture pic = srcPres.Pictures[0];

//Write it on disk

FileStream fout = new FileStream("c:\\output.gif", FileMode.Create, FileAccess.Write);

pic.Write(fout);

fout.Close();

Dear Tobias,

It is not possible for us to extract animated GIF images from a presentation. Actually, all GIF images are stored inside PPT in PNG format and GIFF animation is also embedded inside the PNG file which can be retrieved internally by MS Office products only.