Copied to clipboard

Flag this post as spam?

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

  • Mike 80 posts 101 karma points
    Sep 03, 2010 @ 12:47

    jCrop implementation


    I'm just wondering if there will be a package released which implements jCrop (or something similar) to scale large images to fit in the umbraco viewport? thanks


  • skiltz 501 posts 701 karma points
    Sep 03, 2010 @ 12:59

    Are you talking about the front-end or back-end of umbraco?  There is already a jcrop image cropper built into umbraco back-end.

  • Mike 80 posts 101 karma points
    Sep 03, 2010 @ 13:37


    yes, sorry, explained myself a little wrong.I am indeed talking about the backend.

    I looked at Kenny's page and found this:

    Things I’d like to implement in the next version:

    That's what I was talking about. He has already put up a seperate link a year(?) ago ( but this link isn't working anymore.(this post:

    I could not find the source anywhere, but I really would like this, because it would make the cropping of large images (2000x2000 etc. which people do upload:)) so much easier!

    I checked the source and it seems you can add/change the BoxWidth/Height option. The image will then be scaled to this size and the cropping tool will automatically calculate the dimensions.


  • Kennet Guldager 5 posts 26 karma points
    Feb 01, 2011 @ 15:16
    Kennet Guldager


    Any hope for a fix on this issue?

    I have both 4.6 and 4.5.2 sites where I would like to crop big images, 4000px+  

    Mike, did you solve the problem, and what version of umbraco are you using?

    Any workaround / fix / ideas would be appreciated 


  • wolulcmit 357 posts 693 karma points
    Oct 12, 2011 @ 07:19

    if anyone else is interested I came up with a quick hack/fix for this
    download latest umbraco 4.7.1 source,
    find umbraco.editorControls > imagecropper
    edit the file called Resources.resx

    go to line 417
    boxWidth: 0
    boxHeight: 0
    replace the default null values with something that suits your needs

    for me, this worked out pretty well
    boxWidth:            ($(window).width()*0.85),
    boxHeight:            ($(window).height()*0.85),

    compile and replace your old umbraco.editorControls.dll with the new one
    I've uploaded a dll replicating the steps above if it saves anyone some time (use at your own risk, backup your old dll first etc.)

    this bug has been niggling at me since I first started using the inbuilt cropper so I decided to see if I could do a quick fix.
    it's probably not the proper way to do things, but it suits my purposes for the time being.
    tested in firefox & chrome (it seems to work ok)

    vote this bug up on codeplex so it gets fixed properly!

  • wolulcmit 357 posts 693 karma points
    Oct 12, 2011 @ 07:23

    forgot to mention, thanks to the god-like Murray Roke for leading me to this solution via his input here:

    check out the Terabyte image cropper which also uses jCrop and is set to resize images if they're too big for the viewing pane

    - Tim

Please Sign in or register to post replies

Write your reply to: