CrumpledDog / Umbraco-AzureCDNToolkit

Makes it easy to fully utilise the Azure CDN with a Umbraco website
13 stars 14 forks source link

Usage with slimsy v2 #16

Open khraibani opened 5 years ago

khraibani commented 5 years ago

Hi Jeavon is it possible to use it with slimsy? What the below equates to: <img src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" data-srcset="@Url.GetSrcSetUrls(thumbnail, "Industry Thumb")" data-src="@Url.GetCropUrl(thumbnail, cropAlias: "Industry Image", useCropDimensions: true)" sizes="auto" alt="@thumbnail.Name" class="lazyload" />

to this <img src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" data-srcset="@Url.GetSrcSetUrls(thumbnail, "Industry Thumb")" data-src="@Url.GetCropCdnUrl(thumbnail, cropAlias: "Industry Image", useCropDimensions: true)" sizes="auto" alt="@thumbnail.Name" class="lazyload" />

Do I need to change GetSrcSetUrls?

uniquelau commented 5 years ago

Also interested in usage with Slimsy V2.

Looking at the code, it looks like this would need to be implemented, do you have any plans for this, or want a hand doing so?