Copied to clipboard

Flag this post as spam?

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


  • bh 291 posts 976 karma points
    Sep 05, 2018 @ 21:16
    bh
    0

    GeCropUrl() is adding black bars

    I have an 800x600 image. I have an 800x600 cropAlias.

    Using this code:

    var img = li.GetPropertyValue<IPublishedContent>("wSlideImage");
    var imgURL = img.GetCropUrl(cropAlias:"800x600");
    <img src="@imgURL" class="img-fluid" />
    

    Results in this image: https://qa.allycharlottecenter.com/media/1028/800x600.jpg?crop=0.042294475284166008,0,0.0060798308220988634,0&cropmode=percentage&width=800&height=600&rnd=131806401540000000

    Note the black bars on the left and right side of the image. What's up with the black bars?

  • Sven Geusens 161 posts 869 karma points c-trib
    Sep 06, 2018 @ 08:59
  • bh 291 posts 976 karma points
    Sep 07, 2018 @ 19:01
    bh
    0

    @SvenGeusens Here's the definition for the cropalias enter image description here

  • 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