CrumpledDog / Umbraco-AzureCDNToolkit

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

Does this work with the Image Cropper property editor? #9

Open t9creative-zz opened 7 years ago

t9creative-zz commented 7 years ago

I have tried numerous different things trying to get this to work, but doesn't seem to work 100%

I have gotten the closest with the following: @Url.GetCropCdnUrl(Model.Content.GetPropertyValue("photoFile"), cropAlias: "Base")

The CDN url is correctly resolved but the cropAlias isn't applied (no width or height parameters) and it also creates a new random string with each request resulting in numerous cache entries.

croban commented 6 years ago

add useCropDimensions: true then it will work

webmonger commented 6 years ago

@t9creative Could you confirm if this solutions solved your problem so we can close?