Spire.Presentation is a professional PowerPoint® compatible library that enables developers to create, read, write, modify, convert and Print PowerPoint documents. Get free and professional technical support for Spire.Presentation for .NET, Java, Android, C++, Python.

Tue Jun 02, 2020 9:17 am

Hello,
I need to extract all images from presentation.

Here is my code

Code: Select all
public List<Image> ExtractImages()
      {
         var images = new List<Image>();
         foreach(IImageData imageData in _document.Images)
         {
            if (imageData?.Image != null)
            {
               images.Add(imageData.Image);
            }
         }
         return images;
      }


The problem is one of the images in the presentation is SVG
And when I am trying to work with it I get exception.

Code: Select all
Parameter is not valid.
   at System.Drawing.SafeNativeMethods.Gdip.CheckStatus(Int32 status)
   at System.Drawing.Image.FromStream(Stream stream, Boolean useEmbeddedColorManagement, Boolean validateImageData)
   at spr䤄.ᜁ(Stream A_0)
   at spr䒹.ᜀ()
   at spr䒹.ᜄ()
   at spr䒹.ᜈ()

okantalinski
 
Posts: 3
Joined: Fri Dec 20, 2019 9:38 pm

Tue Jun 02, 2020 9:36 am

Hello,

Thanks for your inquiry.
To help us investigate your issue more accurately and quickly, please share your input file with us. You could send it to us(support@e-iceblue.com) via email.
Thanks in advance for your assistance.

Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1571
Joined: Tue Jul 09, 2019 2:22 am

Mon Jun 15, 2020 9:40 am

Hello,

Hope you are doing well.
Could you please provide your input file to help us investigate further? Thanks in advance.

Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1571
Joined: Tue Jul 09, 2019 2:22 am

Wed Jul 01, 2020 6:08 pm

This issue is resolved already.
Thank you!

okantalinski
 
Posts: 3
Joined: Fri Dec 20, 2019 9:38 pm

Thu Jul 02, 2020 1:11 am

Hello,

Glad to hear that!
If you encounter any issue related to our product in the future, please feel free to contact us.
Have a nice day!

Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1571
Joined: Tue Jul 09, 2019 2:22 am

Return to Spire.Presentation