Free Support Forum -

WMF to PNG conversion within Linux environment


We are not getting the expected output of WMF to PNG conversion within (195.1 KB)
Linux environment.

I’ve attached wmf and converted png files, you will get issues there by comparing wmf image39.wmf and converted png file image39.png.

We were trying to follow Aspose.Imaging WMF To Png conversion not properly with no success.

Our Env:
Ubuntu Linux 18.04.4 LTS (GNU/Linux 5.4.0-1029-aws x86_64), running non root account
Microsoft Fonts installed
Licensed Aspose.Images (latest)

public byte[] convertWmfImage(byte[] input) {
Image img = Image.load(new ByteArrayInputStream(input));

ByteArrayOutputStream os = new ByteArrayOutputStream();

PngOptions pngOptions = new PngOptions();

VectorRasterizationOptions rasterizationOptions = new WmfRasterizationOptions();
pngOptions.setCompressionLevel(0);, pngOptions);

return os.toByteArray();



I have created an issue with ID IMAGINGJAVA-1979 in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be notified once the issue will be fixed.


It has been 7 days since the issue has been created.

Do you have any news for us?



The issue has been created in recent times and is in progress at the moment for investigation. We request for your patience and will share the good news with you as soon as the it will rectified.