Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Manjunatha Govindappa 20 posts 119 karma points
    Sep 15, 2017 @ 10:58
    Manjunatha Govindappa
    0

    Image cropper issue in Azure CDN Toolkit for Umbraco plugin

    Hi,

    I am using Azure CDN Toolkit for Umbraco it works fine except the issue in cropped image.

    If I use custom Image cropper data type with more than 1 crop when I am rendering the image in view file using Url.GetCropCdnUrl() function it always consider the default or first crop dimensions,

    I tried specifying crop alias like below

    @Url.GetCropCdnUrl(blogPost,propertyAlias:"bloglistingimage",cropAlias:"homePageBlogImage")

    but it is not working always showing image of default crop size, can anyone tell me what is the issue and is there any work around.

  • Manjunatha Govindappa 20 posts 119 karma points
    Sep 15, 2017 @ 12:44
    Manjunatha Govindappa
    0

    Hi,

    I am able to resolve the issue, when we are using crop alias we should also set vale true for 'useCropDimensions' parameter as shown below

    @Url.GetCropCdnUrl(blogPost,propertyAlias:"bloglistingimage",cropAlias:"homePageBlogImage", useCropDimensions:true)

Please Sign in or register to post replies

Write your reply to:

Draft