Hi, I’m having an issue using Aspose HTML to generate an image representation. My base HTML contains both images and Google Fonts. When I run the conversion locally on a Windows machine, the output looks correct. Both images and fonts render correctly when I save as an image from the source HTML.
But when I deploy it to our QA environment which is in the cloud (Azure), it is actually running on a Linux container. It still generates an image from the HTML, but the fonts are not correct, sometimes even missing characters and the font-family falls back to some generic default. Images are often cut off arbitrarily on the right or bottom of the images. I have attached an image showing what it looked like in the browser, compared to the right side output jpg file depicting all the problems with red arrows.
It seems suspiciously similar to this blog post describing issues with System.Drawing in Linux. https://blog.aspose.com/2020/12/13/using-system-drawing-in-linux/
What is the solution to rendering Fonts and Images properly when using Aspose.HTML to generate images from valid HTML? Thank you.
on-linux.jpg (287.3 KB)