Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jim 22 posts 163 karma points
    Nov 16, 2016 @ 13:02
    Jim
    0

    Image Cropper focal point?

    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

  • Paul Griffiths 370 posts 1021 karma points
    Nov 16, 2016 @ 14:51
    Paul Griffiths
    0

    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

  • Jim 22 posts 163 karma points
    Nov 17, 2016 @ 05:58
    Jim
    0

    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

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Nov 17, 2016 @ 07:36
    Dennis Aaen
    0

    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

  • Jim 22 posts 163 karma points
    Nov 17, 2016 @ 08:25
    Jim
    0

    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

  • Jim 22 posts 163 karma points
    Nov 17, 2016 @ 08:59
    Jim
    100

    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

Please Sign in or register to post replies

Write your reply to:

Draft