Copied to clipboard

Flag this post as spam?

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


  • Claushingebjerg 936 posts 2571 karma points
    Mar 21, 2014 @ 12:48
    Claushingebjerg
    1

    Cropper in 7.1 - how to use?

    Im not sure if im doing something wrong or it is by design.

    I've created the datatype:

    I've added it to the image media type:

    But after uploading an image to the media section i cant crop it?!
    Umrabco wants me to upload another image for the crops?!?

    That does'nt really make sense to me. If it's by design, could someone please explain why?

     

     

     

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Mar 21, 2014 @ 12:59
    Jan Skovgaard
    100

    Hi Claus

    I agree that this approach is not ideal. But that's currently the way it's working.

    I've been giving it a spin since yesterday and will probably report an issue on improving the usability or perhaps even make it default for the usual media uploader.

    The only way the cropper makes sense right now is if you just replace the usual "upload" property and simply replace it with the cropper or if you use the cropper directly on a document type.

    If you need to see some examples on how to render the crops I made some examples here

    /Jan

  • Claushingebjerg 936 posts 2571 karma points
    Mar 21, 2014 @ 13:05
    Claushingebjerg
    0

    Ahhh, just changing the UmbracoFile "Upload" paramater to use the "Cropper" instead of "Upload" fixes it, and still adds files to the media library.

    Perfect! (when you see the light :) ) 

  • Dennis Spijkerboer 53 posts 95 karma points
    Mar 26, 2014 @ 14:17
    Dennis Spijkerboer
    0

    I can see this work with a signle file. But this can't replace the multiple media picker. It seems really weird to upload the file 2 times. 

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Mar 26, 2014 @ 14:29
    Jan Skovgaard
    0

    Hi Dennis

    Hmm, that might be a good point actually. It might be a good idea to raise a flag about this on the issue tracker

    /Jan

  • Dennis Spijkerboer 53 posts 95 karma points
    Mar 26, 2014 @ 14:36
    Dennis Spijkerboer
    0

    Hi Jan,

    I just created an issue: http://issues.umbraco.org/issue/U4-4529 ;

  • Claushingebjerg 936 posts 2571 karma points
    Mar 26, 2014 @ 14:38
    Claushingebjerg
    1

    That would only be a problem if you used it directly on the Doc type, wouldnt it?

    If you use it on the media type, the crop is associated with the media file.

    If you then pick your images with MNTP or multi media picker, You should be sorted... Or am i wrong?

     

  • Dennis Spijkerboer 53 posts 95 karma points
    Mar 26, 2014 @ 14:53
    Dennis Spijkerboer
    2

    Ahh thanks to Jeroen Breuer, I see where I went wrong. You need to complety replace the upload (umbracoFile) with the image cropper.

    http://issues.umbraco.org/issue/U4-4376# ;

  • Jason Espin 368 posts 1335 karma points
    Jun 04, 2014 @ 13:06
    Jason Espin
    0

    I've tried creating a custom image type called custom image which is a direct copy of the image media type apart from it uses an image cropper with the alias umbracoFile instead of an Upload field. This doesn't work at all however and fails to display the uploaded images in the media folder. Any ideas why?

  • Claushingebjerg 936 posts 2571 karma points
    Jun 04, 2014 @ 13:11
    Claushingebjerg
    0

    All you need to do is change the "Upload" type on your Image media type to use your "Crop" datatype, and then you're rolling. 

     

     

     

     

     

     

  • Jeavon Leopold 3072 posts 13628 karma points MVP 10x admin c-trib
    Jun 04, 2014 @ 13:45
    Jeavon Leopold
    0

    You might interested in last weeks uHangOut where I went through the Image Cropper in detail

  • Jason Espin 368 posts 1335 karma points
    Jun 04, 2014 @ 13:45
    Jason Espin
    0

    That's what I did though and it doesn't add the images to the Media library. Could it be because I'm using the media service rather than the back office?

  • Zoran 4 posts 24 karma points
    Jun 09, 2014 @ 14:24
    Zoran
    0

    I see there's a lot of discussion on the new Image Cropper. I have to say it's a cool addition, however, I can't make it work.

    I've been with Umbraco since the early 4 versions and as you can see I don't post much, usually I can find everything in the current posts. I've read a lot of them here but could not find the issue I'm facing.

    All the sugested steps are there, Upload replaced by the Image Cropper type, crops specified, save and publish in Umbraco.

    The first strange issue is that other that the original image, there isn't any other file created on the file system for the crops.Ok, fine, thoutgh maybe the new ImageProcessor does it's thing on the fly, like the old Image Resizer use to do.

    However, when the path of the image is rendered using the various code methods sugested, I got something like this:

    <img src="/media/1031/dsc00357.jpg?center=0.46333333333333332,0.2425&amp;mode=crop&amp;width=285&amp;height=138&amp;rnd=130464546300000000" alt="">

    Now, it's clearly one of my cropers since the with and height are the correct ones, but the image is not displayed.

    Once I copy paste the image url in the browser I've got a 404 and redirect to:

    /login.aspx?ReturnUrl=%2fmedia%2f1031%2fdsc00357.jpg%3fcenter%3d0.46333333333333332%2c0.2425%26amp%3bmode%3dcrop%26amp%3bwidth%3d285%26amp%3bheight%3d138%26amp%3brnd%3d130464546300000000&center=0.46333333333333332,0.2425&amp;mode=crop&amp;width=285&amp;height=138&amp;rnd=130464546300000000

    It looks like some kind of permission issue or something like that. Can anybody help?

    Regards,

    Zoran

Please Sign in or register to post replies

Write your reply to:

Draft