Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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.
is working on a reply...