Copied to clipboard

Flag this post as spam?

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


  • Søren Kottal 702 posts 4497 karma points MVP 5x c-trib
    Oct 28, 2014 @ 15:16
    Søren Kottal
    0

    Large uploaded images gets resized

    When I upload images through the Image Cropper datatype, they get resized.

     

    Ie. I try to upload a 3000x3000 px image, and it gets resized to 1800x1800. Is there any way of disabling this behaviour?

  • Danny Blatant 91 posts 358 karma points
    Oct 28, 2014 @ 19:07
    Danny Blatant
    1

    That's odd!

    I also use a Media Picker that derives from the Image Cropper, but my images are never resized and I'm using images bigger than 1800 square...

    Are you sure the uplaoded Media is resized and not just that returned from the Image Cropper??

    For me, I set up the Data Type as Image Cropper, but with absolutely no preset crops. Then in code I query the Media Service directly to get the image back (no GetCropUrl).

    I use imagegen to resize and cache images as needed, much like the technique listed here :

    https://umbraco.com/follow-us/blog-archive/2014/5/30/developing-a-website-with-responsive-images-using-the-umbraco-v714-image-cropper

    Have a look at the article, it may help in as much as setting up your fields.

    Let me know if it helps!

    As an extra, here's how I get the pure, uncropped image path from the Media Services:

    JObject Image = Umbraco.TypedMedia((int)docType.GetPropertyValue("image")).GetPropertyValue<JObject>("umbracoFile");
    

    Who knows, it might help you out! Letus know how you fair!

    Kind Regards,

    Danny "Blatant"

  • Søren Kottal 702 posts 4497 karma points MVP 5x c-trib
    Oct 29, 2014 @ 07:52
    Søren Kottal
    1

    Just an update...

     

    Seems like it works in Chrome and IE. But Firefox resizes on upload.

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Oct 29, 2014 @ 07:59
    Jan Skovgaard
    0

    Hi Søren

    Sounds like something that should be reported on the issue tracker - Even though it seems to be a Firefox specific issues it's something HQ should know about so they perhaps can figure out if it's something that can be solved or not.

    /Jan

  • Søren Kottal 702 posts 4497 karma points MVP 5x c-trib
    Oct 29, 2014 @ 08:29
    Søren Kottal
    1

    Hi Jan

     

    Just found the same bug in the issue tracker :)

     

    So apparently, I'm not the only one.

     

    http://issues.umbraco.org/issue/U4-5200

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Oct 29, 2014 @ 08:46
    Jan Skovgaard
    0

    Hi Søren

    Aah, Cool :) Will go and vote.

    Cheers, Jan

  • Danny Blatant 91 posts 358 karma points
    Oct 29, 2014 @ 10:22
    Danny Blatant
    1

    Well what do you know! I can recreate in 7.1.4. As someone in the issue said if you go via 'create' -> 'image' it uploads the full size image, but just going to the folder and dragging does indeed resize images.

    I've also voted ths issue.

Please Sign in or register to post replies

Write your reply to:

Draft