andrei-m-code / net-core-html-to-image

.NET Core HTML to Image converter
MIT License
127 stars 54 forks source link

Exception when converting html: Please check input parameters #12

Open mkwerneck opened 5 years ago

mkwerneck commented 5 years ago

Hi, I'm trying to convert my html string to image and found this package. However after trying the exactly same code from your demo, i'm getting the error:

An unhandled exception occurred while processing the request. Exception: Something went wrong. Please check input parameters CoreHtmlToImage.HtmlConverter.FromUrl(string url, int width, ImageFormat format, int quality)

i've saw another thread closed similar to this, but didn't helped me. My code is:

var converter = new HtmlConverter(); var html = "

Hello, World

"; var bytes = converter.FromHtmlString(html); File.WriteAllBytes("image.jpg", bytes);

Thanks in advance

VitMosin commented 4 years ago

I get the same problem. Did you solve it?

dawid1103 commented 4 years ago

Hello I guess I've fixed it but I can't push a branch. I had same problem. This is an error with a space in path