net-core-html-to-image
net-core-html-to-image copied to clipboard
Fonts do not display correctly when deployed to Azure
I'm building a web app with .Net Core. The CoreHtmlToImage NuGet package seems to work fine when I'm running my web app locally in VS 2017. However, when I deploy my web app to Azure, the fonts do not get rendered correctly.
Do you know why your image generator behaves differently when running in Azure?
Thanks!
@kovitz I'm not sure.. Do you mind posting 2 images, 1 generated locally and the other - from Azure? I'd like to compare side by side.
I have the same problem.
local
Azure

@andrei-m-code , @kovitz , I have using this library on our azure functions and its working fine on local but when we deploay to production its crashing with "The type initializer for 'CoreHtmlToImage.HtmlConverter' threw an exception.". Please help!
@andrei-m-code , @kovitz , I have using this library on our azure functions and its working fine on local but when we deploay to production its crashing with "The type initializer for 'CoreHtmlToImage.HtmlConverter' threw an exception.". Please help!
I also have this issue.
Same issue here! If the required fonts are not installed in Azure Function or in Docker Container then it returns an image with default fonts instead of the selected.