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...
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.
Continue discussion
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...
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.