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
Umbraco Version: 7.10.4
When trying to use GetCropUrl on a media image I'm unable to overwrite the default anchor=center on the image when the ImageCropMode is set to crop.
I'm current having to do
umbracoHelper.TypedMedia(x.GetValue<int>("profilePicture")).GetCropUrl(230, 130).Replace("anchor=center", "anchor=top")
Instead of being able to do
umbracoHelper.TypedMedia(x.GetValue<int>("profilePicture")).GetCropUrl(230, 130, imageCropAnchor: Umbraco.Web.Models.ImageCropAnchor.Top)
Is this intentional or a bug? Thanks for any help.
Please can you try. I have added Url and seems to work fine for me.
umbracoHelper.TypedMedia(x.GetValue<int>("profilePicture")).Url.GetCropUrl(230, 130, imageCropAnchor: Umbraco.Web.Models.ImageCropAnchor.Top)
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Unable to set ImageCropAnchor when ImageCropMode is set to crop
Umbraco Version: 7.10.4
When trying to use GetCropUrl on a media image I'm unable to overwrite the default anchor=center on the image when the ImageCropMode is set to crop.
I'm current having to do
Instead of being able to do
Is this intentional or a bug? Thanks for any help.
Please can you try. I have added Url and seems to work fine for me.
is working on a reply...