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
How do I use the image cropper in Umbraco 8?
I am trying to use the image cropper on my doc type so all my inner pages heading images are the same size even if the client adds a image that is too large.
But when i am trying to render the image its just showing up as the original sized image.
<img src="@Model.Image.Url" alt="bannerImg" />
Can anyone help me out!?
Hi Nathan,
Try
<img src="@(Model.Image.GetCropUrl("cropAliasHere"))" alt="bannerImg" />
There is more information about this here.
https://our.umbraco.com/documentation/getting-started/backoffice/property-editors/built-in-property-editors/image-cropper/
Regards
David
Thanks Dave.
I thought there was something I was missing.
For anyone else struggling with this issue I have wrote a step by step blog explaining how add and use Umbraco 8 Image Cropper
https://www.umbrajobs.com/blog/posts/2020/july/how-to-add-a-image-cropper-to-a-doc-type-in-umbraco-8/
Ok great. Glad I could help.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Umbraco 8 Image Cropper
How do I use the image cropper in Umbraco 8?
I am trying to use the image cropper on my doc type so all my inner pages heading images are the same size even if the client adds a image that is too large.
But when i am trying to render the image its just showing up as the original sized image.
Can anyone help me out!?
Hi Nathan,
Try
There is more information about this here.
https://our.umbraco.com/documentation/getting-started/backoffice/property-editors/built-in-property-editors/image-cropper/
Regards
David
Thanks Dave.
I thought there was something I was missing.
For anyone else struggling with this issue I have wrote a step by step blog explaining how add and use Umbraco 8 Image Cropper
https://www.umbrajobs.com/blog/posts/2020/july/how-to-add-a-image-cropper-to-a-doc-type-in-umbraco-8/
Ok great. Glad I could help.
is working on a reply...