Copied to clipboard

Flag this post as spam?

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


  • Anders Schmidt 76 posts 207 karma points
    Jun 26, 2014 @ 11:00
    Anders Schmidt
    0

    Imagecrop with mediaLibary. Not dispalying crop

    I am using imagecropper with Umbraco 7.1.0.

    Code for displaying my image:

    @if (slideNode.HasProperty("linkImage"))
      {
        var image = slideNode.getProperty("linkImage").Value.ToString();
        var test = Umbraco.Media(@image);
        var path = test.umbracoFile;
    
       <img src="@test.GetCropUrl("box")" alt="" />
    
      }

    But it seems like my crop is not displayed. The src looks right i think:

    <img src="/media/1437/blog-img3.png?crop=0,39154015911034062,0,0,32983864286238529,0,55947136563876654&amp;cropmode=percentage&amp;width=300&amp;height=300&amp;rnd=635393770303582523" alt="">

     

    Any Idear what is wrong?

    Thanks

     

  • Jeavon Leopold 3074 posts 13632 karma points MVP 11x admin c-trib
    Jun 26, 2014 @ 11:06
    Jeavon Leopold
    100

    Hi Anders,

    You need to upgrade to v7.1.4 to solve this bug. It was a bug in ImageProcessor with non US cultures which has been fixed.

    Regards,

    Jeavon

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies