RickStrahl / WestWind.WebView.HtmlToPdf

Creating Pdf output from Html with .NET on Windows using the WebView2 control
MIT License
25 stars 4 forks source link

Do all images need to be base64 embedded? #5

Closed fabioparra closed 2 months ago

fabioparra commented 3 months ago

Hi @RickStrahl, I tested your examples with loading an image from an https URL, but the image did not load. Do you have any idea why? It seems that images are only loaded with src="data:image/png;base64,...

RickStrahl commented 3 months ago

How big is your embedded data? There's a bug in the WebView control that if the embedded data is larger than 2mb it won't render.

https://github.com/MicrosoftEdge/WebView2Feedback/issues/4251 (related)

This limit applies for a number of things not just image embedding but also for string navigation and POST buffer capture.

RickStrahl commented 2 months ago

Closing since no response.