Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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?
Could you show the defenition of that cropalias?
I usually get urls like these: https://qa.allycharlottecenter.com/media/1028/800x600.jpg?center=0.042294475284166008,0.0060798308220988634&mode=crop&width=800&height=600&rnd=131806401540000000
@SvenGeusens Here's the definition for the cropalias
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
GeCropUrl() is adding black bars
I have an 800x600 image. I have an 800x600 cropAlias.
Using this code:
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?
Could you show the defenition of that cropalias?
I usually get urls like these: https://qa.allycharlottecenter.com/media/1028/800x600.jpg?center=0.042294475284166008,0.0060798308220988634&mode=crop&width=800&height=600&rnd=131806401540000000
@SvenGeusens Here's the definition for the cropalias
is working on a reply...