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!
After upgrading to Umbraco 7.5.4 I have tried to use image cropper like this:
var img = Umbraco.TypedMedia(Model.Content.GetPropertyValue("img1")); var url = img1.GetCropUrl("contactImg"); <div class="contactImg" style="background-image:url('@url')">
I make an image crop in Umbraco and name it "contactImg", go to desired image and try to zoom in the image and crop it, set the focal point etc.
It worked pre-7.5.4 but the crop is not showing anymore on the website. Same with focal point, it does not listen anymore.
Can someone point me in the right direction?
Many Thanks, Jim
Hi Jim,
Unsure whether its related but i remember having an issue with the cropper a while back.
See if this post helps you at all? https://our.umbraco.org/forum/templates-partial-views-and-macros/79600-null-object-cannot-be-converted-to-a-value-type
Thanks Paul
Hi and thanks for replying,
I do not have the same issue, my image is showing but it does not crop the image as it should.
The image-src I get is:
/media/1016/computer_guy.jpg?crop=0.32277308752584427,0.30774359193215139,0.47047294968986908,0.60568407787995515&cropmode=percentage&width=550&height=300&rnd=131237764770000000
When I see look at the image it's still the full, un-cropped image but minified to 300px height.
Regards, Jim
You are saying that you have upgraded your Umbraco installation. Which version of Umbraco did you run before the upgrade.
If it´s lower than 7.3.5 then try to see this documentation https://our.umbraco.org/documentation/getting-started/backoffice/property-editors/built-in-property-editors/image-cropper
Hope this helps,
/Dennis
Hi Dennis and thanks for the reply,
We upgraded from 7.4.3. I've tried the examples in the documentation, but still it does not crop right.
Hey all, fixed the problem...
It was another module we had for imaging resizing that made it go bananas! Thanks for all the answers.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Image Cropper focal point?
Hello!
After upgrading to Umbraco 7.5.4 I have tried to use image cropper like this:
I make an image crop in Umbraco and name it "contactImg", go to desired image and try to zoom in the image and crop it, set the focal point etc.
It worked pre-7.5.4 but the crop is not showing anymore on the website. Same with focal point, it does not listen anymore.
Can someone point me in the right direction?
Many Thanks, Jim
Hi Jim,
Unsure whether its related but i remember having an issue with the cropper a while back.
See if this post helps you at all? https://our.umbraco.org/forum/templates-partial-views-and-macros/79600-null-object-cannot-be-converted-to-a-value-type
Thanks Paul
Hi and thanks for replying,
I do not have the same issue, my image is showing but it does not crop the image as it should.
The image-src I get is:
When I see look at the image it's still the full, un-cropped image but minified to 300px height.
Regards, Jim
Hi Jim,
You are saying that you have upgraded your Umbraco installation. Which version of Umbraco did you run before the upgrade.
If it´s lower than 7.3.5 then try to see this documentation https://our.umbraco.org/documentation/getting-started/backoffice/property-editors/built-in-property-editors/image-cropper
Hope this helps,
/Dennis
Hi Dennis and thanks for the reply,
We upgraded from 7.4.3. I've tried the examples in the documentation, but still it does not crop right.
Regards, Jim
Hey all, fixed the problem...
It was another module we had for imaging resizing that made it go bananas! Thanks for all the answers.
Regards, Jim
is working on a reply...