Exporting Vector Images from Presentations Throws ArgumentNullException

Hi Team,

I am facing an issue with emf/wmf vector image files embedded in Powerpoint files.
I am trying to save such a vector images into memory stream but it fails with the following exception:

System.ArgumentNullException: Value cannot be null. (Parameter 'encoder')
at System.Drawing.Image.Save(Stream stream, ImageCodecInfo encoder, EncoderParameters encoderParams)
at System.Drawing.Image.Save(Stream stream, ImageFormat format)

I’ve tried it on windows platform with Aspose.Slides 21.11

I have implemented an example solution to demonstrate this issue.
Please find it attached.

Thanks, Zoltan
WmfEmfImageExportFailedInSlides.zip (292.1 KB)

Thank you for the issue description.

I reproduced the problem with exporting vector images and added a ticket with ID SLIDESNET-42933 in our issue tracking system. Our development team will investigate this case. We will inform you of any progress.

Please try to extract the images as shown here.