ErikHen / PictureRenderer.Optimizely

PictureRenderer for Optimizely CMS (former Episerver)
MIT License
13 stars 4 forks source link

Html-validation errors #9

Closed jonatanjii closed 1 year ago

jonatanjii commented 1 year ago

Hi we get html-validation errors for our images: There seem to be spaces missing in source and img

Below we use the following profile:

public static readonly PictureProfile PersonBlockImage = new() { SrcSetWidths = new[] { 200 }, Sizes = new[] { "100vw" }, AspectRatio = 1, CreateWebpForFormat = null, Quality = 90 };

image

image

/Jonatan

ErikHen commented 1 year ago

Hi. Update to latest version of Picturerenderer . I'll keep this issue open until I've updated this nuget.

ErikHen commented 1 year ago

v2.4.0 use latest version of PictureRenderer which have more compliant rendering.

jonatanjii commented 1 year ago

Thanks!