Hey guys,
I'm getting the same problem whereby our images are showing up black after we migrated a custom site across to Azure.
I've noticed that the code is using the GDI and we are on a Standard plan.
Are you able to advise how you used the RenderToImageGdiPlus our code is using HtmlRender.RenderToImage to get an image object and then trying to save that to the uploads directory. I can't see anyway to make it use the RenderToImageGdiPlus.
System.Drawing.Image image = HtmlRender.RenderToImage(sbHtml.ToString(), new Size(250, playlists.Count * 150), PlaylistRendererHelper.BackgroundColor);
image.Save(Server.MapPath(System.Configuration.ConfigurationManager.AppSettings["PlaylistImages"]) + uniquePlaylistId + ".png", ImageFormat.Png);
We use this to create a facebook og image on the fly to share selected playlist images in a site.
I'm getting the same problem whereby our images are showing up black after we migrated a custom site across to Azure.
I've noticed that the code is using the GDI and we are on a Standard plan.
Are you able to advise how you used the RenderToImageGdiPlus our code is using HtmlRender.RenderToImage to get an image object and then trying to save that to the uploads directory. I can't see anyway to make it use the RenderToImageGdiPlus.
System.Drawing.Image image = HtmlRender.RenderToImage(sbHtml.ToString(), new Size(250, playlists.Count * 150), PlaylistRendererHelper.BackgroundColor);
image.Save(Server.MapPath(System.Configuration.ConfigurationManager.AppSettings["PlaylistImages"]) + uniquePlaylistId + ".png", ImageFormat.Png);
We use this to create a facebook og image on the fly to share selected playlist images in a site.