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
Hello,
I have following markup in a view:
<img alt="About image" class="img-fluid" src="@Model.ImageUrl?width=600&height=450&mode=crop"/>
But I'd like it to crop from a position instead, like, crop everything that is outside my dimension from the left side...
Is this possible with the built in ImageProcessor?
The Image I'm using here is just a normal media picker (because I don't want to complicate with cropper).
Hi Alexander,
Yes you can :)
Can do something like:
?crop=0,0,0,31.06502&cropmode=percentage&width=600&height=450&mode=crop
Can read about it here: http://imageprocessor.org/imageprocessor-web/imageprocessingmodule/crop/
Thanks! This worked perfectly.
I actually tried something similar based on that documentation but couldn't get it to work. But now it does, I must have messed up somehow!
Thanks again!
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Crop Image - position?
Hello,
I have following markup in a view:
But I'd like it to crop from a position instead, like, crop everything that is outside my dimension from the left side...
Is this possible with the built in ImageProcessor?
The Image I'm using here is just a normal media picker (because I don't want to complicate with cropper).
Hi Alexander,
Yes you can :)
Can do something like:
Can read about it here: http://imageprocessor.org/imageprocessor-web/imageprocessingmodule/crop/
Thanks! This worked perfectly.
I actually tried something similar based on that documentation but couldn't get it to work. But now it does, I must have messed up somehow!
Thanks again!
is working on a reply...