Hi Team,
I am handling various image types embedded into Powerpoint files. For my code to function properly I need to know the exact dimensions of the embdedded image.
For that purpose I seem to have a multitude of Aspose APIs at my disposal to determine the image dimensions, however these APIs report inconsistent numbers for wmf vector images.
The APIs in question are:
- Aspose.Slides.IPPImage.Height / Aspose.Slides.IPPImage.Width
- Aspose.Slides.IPPImage.SystemImage.Height / Aspose.Slides.IPPImage.SystemImageWidth
- Aspose.Imaging.Image.Height / Aspose.Imaging.Image.Height
All three seem to report the same dimensions for e.g: jpeg and emf files however for wmf files
the former two seem to report the same dimensions but Aspose.Imaging API report completely different numbers.
Can you please help me clarify this?
I’ve tried it on windows platform with Aspose.Imaging 21.11 and Aspose.Slides 21.11
I have implemented an example solution to demonstrate this.
Please find it attached.
Thanks, Zoltan
VectorImageSizeInconsistencyInSlides.zip (401.2 KB)
However what I have noticed is that for wmf