Copied to clipboard

Flag this post as spam?

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

  • Dafydd Owen 33 posts 173 karma points
    Feb 10, 2014 @ 18:22
    Dafydd Owen

    Image Cropper - Code Behind C#

    Hello Umbraco friends. 

    I am trying to retrieve the image crops via a user control using code behind so I can publish the crop to PDF generated on-the-fly. 

    I have been able to retrieve the original image using the default media picker but cannot find the XML data for the crop. 

    Other posts have suggested using the DAMP_Helper method to find the data but this is where I have struggled. The current code I am working with is;

    var pdfImage = DAMP_Helper.GetImageCropperURL(library.ToDynamicXml("image"));

    The "image" is the document type property using the DAMP package.

    One issue with the above code is ToDynamicXml, apparently library does not contain a definition for this. 

    How else can I approach this? Any help would be grealy appreciated since the previous discussions for this seem incomplete!

    umbraco version 4.11.10

    Many thanks.

Please Sign in or register to post replies

Write your reply to: