Copied to clipboard

Flag this post as spam?

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


  • mike 90 posts 258 karma points
    Mar 25, 2015 @ 05:57
    mike
    0

    Need image cropping advice

    Hi,

    I need user to be able to upload multiple images on a page (as many as they like) and then crop the output.

    At first I thought to use archetype to wrap an image cropper but the image src value is lost somewhere in the wrapping process.

    So then I tried just applying the crop without the user selecting a focal point but that does not work well and images are more often than not cut badly.  I saw a post someone made where they had a custom image control that let you set a focal point but I can't find it again.

    Is there anyway for me to allow user to crop an image in the media section?  The image cropper doesnt seem to touch original file so I am not sure how best to work this.

  • Tom Steer 161 posts 596 karma points
    Mar 25, 2015 @ 08:09
    Tom Steer
    1

    Hey Mike,

    Does the built in image cropper in umbraco 7 not do what you want?

    https://our.umbraco.org/documentation/Using-Umbraco/Backoffice-Overview/Property-Editors/Built-in-Property-Editors-v7/Image-Cropper

    Cheers,

    Tom

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Mar 25, 2015 @ 08:12
    Dennis Aaen
    1

    Hi Mike,

    Did you see the documentation for the image cropper https://our.umbraco.org/documentation/Using-Umbraco/Backoffice-Overview/Property-Editors/Built-in-Property-Editors-v7/Image-Cropper, and perhaps it would be a good idea to see this http://uhangout.co.uk/video/bQsvGmnYaUU episode from uHangout where Jeavon, explains the image cropper and Slimsy.

    Jeavon has also created a package called crop healer for Umbraco this package can you find here: https://our.umbraco.org/projects/collaboration/crop-healer-for-umbraco

    Hope this can help you further.

    /Dennis

  • mike 90 posts 258 karma points
    Mar 25, 2015 @ 08:36
    mike
    0

    Image cropper only works on one image, it does not have a multiple image select option.  I want user to select multiple images with multiple media picker. 

    Can you make the standard image cropper crop images in the library without a content page and save the output image instead of crop json?

    I tried imagegen and cropurl already but I really need user to set focal points for it to work right.

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Mar 25, 2015 @ 08:42
    Dennis Aaen
    0

    Hi Mike,

    It seems that Claus has been able to get et work with multiple images, so try to see this post https://our.umbraco.org/forum/developers/razor/49499-Showing-cropped-images-from-multi-media-picker

    Hope this helps,

    /Dennis

  • mike 90 posts 258 karma points
    Mar 25, 2015 @ 08:47
    mike
    0

    I read post but cant see anything here other than standard image picker.  There is no focal point being set.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Mar 25, 2015 @ 09:03
    Jan Skovgaard
    1

    Hi Mike

    Did you change the media picker to actually use the cropper? If you don't change this in the "Settings" section yourself then the cropper is not being used.

    /Jan

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Mar 25, 2015 @ 09:18
    Dennis Aaen
    0

    Hi Mike,

    I think that you should try to see the uHangout http://uhangout.co.uk/video/bQsvGmnYaUU episode, where Jeavon, explains how the ImageCropper works. As I also linked to in my first post.

    Perhaps this can answers your questions.

    /Dennis

  • Jeavon Leopold 3074 posts 13632 karma points MVP 11x admin c-trib
    Mar 25, 2015 @ 09:19
    Jeavon Leopold
    0

    Hi Mike,

    I think Jan has worked out your issue but like Dennis I would recommend watching this video http://uhangout.co.uk/video/bQsvGmnYaUU

    Jeavon

  • mike 90 posts 258 karma points
    Mar 25, 2015 @ 10:20
    mike
    2

    Got it!

    Thanks everyone for sticking with me, it's been a long night trying to get this site ready to be seen and my brain stopped working 4 hours ago.  Watching the uHangout without skipping bits did the trick and I saw what my confusion was. 

    I couldn't work out which "settings" everyone was talking about as I could only see how to add it to a content type.  I didn't realise you could swap the file upload property of the media type to a cropper!  I think the legacy image picker was confusing me as I thought that is where the setting had to be done and there are no settings on it.

    I got the focal points on all images now :)

    Thanks again.

  • Jeavon Leopold 3074 posts 13632 karma points MVP 11x admin c-trib
    Mar 25, 2015 @ 10:22
    Jeavon Leopold
    0

    Great to hear, well done!

Please Sign in or register to post replies

Write your reply to:

Draft