Copied to clipboard

Flag this post as spam?

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


  • Anthony Candaele 1197 posts 2049 karma points
    Mar 11, 2014 @ 10:04
    Anthony Candaele
    0

    DAMP is not saving the right crop

    Hi,

    I'm having this weird issue with DAMP (v2.7). My Umbraco install is v6.1.6

    I have an Activity document type. For that document type I created an activityImage attribute of type DAMP.

    the Activity Image media type has a activityCrop attribute.

    For some reason, when I upload an activity image and save it, the saved crop is not 'activityCrop' but 'aboutCrop':

    <activityImage>
          <DAMP fullMedia="">
            <mediaItem>
              <ActivityImage id="4162" version="e1977f3a-74ad-49a6-9727-7479b46826b2" parentID="4161" level="3" writerID="0" nodeType="4158" template="0" sortOrder="0" createDate="2014-03-10T14:20:37" updateDate="2014-03-11T09:49:36" nodeName="photo-card-big-7" urlName="photo-card-big-7" writerName="admin" nodeTypeAlias="ActivityImage" path="-1,1059,4161,4162">
                <umbracoFile>/media/1024/photo-card-big-7.png</umbracoFile>
                <umbracoWidth>250</umbracoWidth>
                <umbracoHeight>214</umbracoHeight>
                <umbracoBytes>71070</umbracoBytes>
                <umbracoExtension>png</umbracoExtension>
                <activityCrop>
                  <crops date="2014-03-10T14:20:37">
                    <crop name="aboutCrop" x="0" y="14" x2="250" y2="187" url="/media/1024/photo-card-big-7_aboutCrop.jpg" />
                  </crops>
                </activityCrop>
              </ActivityImage>
            </mediaItem>
          </DAMP>
        </activityImage>
    

    I checked an rechecked all my property settings, but everything seems correct, so I don't understand why the saved crop is 'aboutCrop' and not 'activityCrop' as it should be.

    Thanks for your help,

    Anthony

  • Anthony Candaele 1197 posts 2049 karma points
    Mar 11, 2014 @ 10:13
    Anthony Candaele
    100

    my bad, for the crop attribute on the Activity Image media item, I picked the About Image Cropper instead of the Activity Image Cropper.

    greetings,

    Anthony

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Mar 11, 2014 @ 12:09
    Jeroen Breuer
    0

    Glad you got it fixed :).

    Jeroen

Please Sign in or register to post replies

Write your reply to:

Draft