Copied to clipboard

Flag this post as spam?

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

  • René 327 posts 852 karma points
    Apr 03, 2013 @ 08:54

    Image Crop - Umbraco 6


    Umbraco v6.0.2 (Assembly version: 1.0.4811.18151)

    I trying to get an image through image cropper. 


    Here is the code. I have tryed many different combinations, nothing works.

    <img src="@page.crops.Find("@name", "ForsideGallery").url" />

    when i look in the UmbracoConfig i am missing the crop settings

    <SingelProject id="1117" parentID="1114" level="2" creatorID="0" sortOrder="1" createDate="2013-03-31T20:26:44" updateDate="2013-04-02T10:43:15" nodeName="Om islænderheste" urlName="om-islaenderheste" path="-1,1114,1117" isDoc="" nodeType="1115" creatorName="Administrator" writerName="Administrator" writerID="0" template="0">
            <links />
          <teaserSingle><![CDATA[Viden om islænder heste Lorem ipsum dolor sit amet, consetetur ]]></teaserSingle>


    I have the image cropper as a proberty on a image


    is ther some thing i am missing here. 

    I have done it several times with XSLT with no problems. 

    Kindly René


  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Apr 03, 2013 @ 09:42
    Jan Skovgaard

    Hi René

    Not sure what the issue with the image cropper is - but is there any particular reason why you're not using the cropup package by Niels Kühnel? It is state of the art and works nicely. It even has face recognition :)

    Looking forward to hearing from you.


  • René 327 posts 852 karma points
    Apr 04, 2013 @ 10:36

    HI Jan

    No there are no reason, other that i have never user it.

    Now i have implemented this pacakage and it works great, just what i needed.


  • Niels Lynggaard 190 posts 548 karma points
    Feb 06, 2014 @ 15:46
    Niels Lynggaard

    Jan do you know if this package is compatible with 6.x? I'm going to update at site that uses this package and I don't want to have to fiddle too much about with changing datatypes if I can avoid it..

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Feb 06, 2014 @ 17:59
    Jeroen Breuer


    I've got a v6 site running with CropUp. The Hybrid Framework also uses it. Works without problems :-).


  • Niels Lynggaard 190 posts 548 karma points
    Feb 17, 2014 @ 22:46
    Niels Lynggaard

    Yeah, I'd like to swap to CropUp if this package is dead. Unfortunately, I just need to figure out how to map the data from this datatype to a cropup datatype.

    Since I'm doing an update of an old site, there's alot of media items that use this property allready. The data is stored as xml in the dataNText column in the cmsPropertyData table.

    <crops date="05/05/2010 14:31:29"><crop name="mainimage" x="45" y="204" x2="515" y2="400" url="/media/70486/hustilsalg331299a_mainimage.jpg" /></crops>

    I've had to switch a few other datatypes to other by moving the values between collumns, converting them etc to make it match.Should be fairly simple if the data is at all compatible.

    So I guess I'm looking to swap this datatype with cropup without loosing data.

    How's the data stored with CropUp?

  • Dan 1285 posts 3917 karma points c-trib
    Feb 18, 2014 @ 00:52

    Hi Niels,

    CropUp stores crop settings in an XML config file in 'Config/Eksponent.CropUp.config'. It looks something like this:

    <?xml version="1.0"?>
    <cropUp referenceWidth="620" referenceHeight="480" autoDetect="true" detectFaces="true" iis6="false" boxFaces="true" faceMargin="150" cacheCropData="true">
            <add alias="smallthumb" name="Small thumbnail" width="136" height="96" />
            <add alias="mediumthumb" name="Medium thumbnail" width="216" height="144" />
            <add alias="largethumb" name="Large thumbnail" width="456" height="304" />

    One tip... make sure your crop aliases are all lowercase else they won't be recognised (bug)!

  • Anthony Edge 26 posts 80 karma points
    Aug 24, 2020 @ 07:09
    Anthony Edge

    If I could ask you to cast your mind back 6 years or so... I am supporting a legacy Umbraco v6.1.6 site that uses CropUp and it is doing some facial recognition on an image that is actually no wanted. We'd like to just get a straight scaling of the whole image. Is there a way to turn it off for an instance in a template? The View currently contains this code:

    @CropUp.GetUrl(newURL.ToString(), new ImageSizeArguments { Width = 350 })

    Any advice would be greatly appreciated.

  • Niels Lynggaard 190 posts 548 karma points
    Feb 18, 2014 @ 15:34
    Niels Lynggaard

    Thanx Dan.

    I think I'll be able to make this work for us..

    We're currently using image cropper to force the editor to make a crop that fits the size we need on that specific content. Then we have some code that generates the other crops and writes that to the disc.

    I guess Cropup can do the same for us.

    Thanx for your info.

Please Sign in or register to post replies

Write your reply to: