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
    Mike
    0

    jCrop implementation

    Hi,

    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
    skiltz
    0

    Are you talking about the front-end or back-end of umbraco?  There is already a jcrop image cropper built into umbraco back-end. http://www.youtube.com/watch?v=cVVD60NHMRk

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

    Hi,

    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 (http://kenny.no/downloads/Kenny.Umbraco.DataTypes.ImageCropper.098.zip) but this link isn't working anymore.(this post: http://our.umbraco.org/projects/backoffice-extensions/image-cropper/image-cropper/3946-Resize-picture-to-fit-viewing-pane-if-image-is-huge)

    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.

    thanks

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

    hi,

    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 

    thanks,

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

    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
    http://www.cssandstuff.com/umbraco.editorControls.zip (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!
    http://umbraco.codeplex.com/workitem/30041


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

    forgot to mention, thanks to the god-like Murray Roke for leading me to this solution via his input here: http://our.umbraco.org/projects/backoffice-extensions/image-cropper/image-cropper/3946-Resize-picture-to-fit-viewing-pane-if-image-is-huge

    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
    http://our.umbraco.org/projects/backoffice-extensions/terabyte-image-cropper

    - Tim

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies