We are using Aspose slide (java) to read .pptx files. When we save the .emf images in .pptx file as png image using the following code, the image generated is not same as the original emf image and is bad in quality.
if (s instanceof PictureFrame) {
PictureFrame pictureFrame =(PictureFrame) s;
BufferedImage image = pictureFrame.getPictureFormat().getPicture().getImage().getSystemImage();
ImageIO.write(image, “png”, new File(dataDirOut + slideNum+j + “.png”));
}
PFA. I have attached the actual emf file and generated png file.