I have added Image Cropper to the default Image media type.. cropping is working fine and the files are saved correct in media folder. but how can I get the path in razor..I have tried different methods suggested in various our forum threads.. but they are working only when the cropped adds to a doc type image not media type image.. Please help
If you look at mainHeaderImageCropper you see no crops are defined yet. This means the crops aren't created yet. If you install DAMP 2.0 this should happen automatically for all new images created. It won't work for images which you already created. You can use this package for that: http://our.umbraco.org/projects/backoffice-extensions/create-crops.
Image Cropper in umbraco 4.9
I have added Image Cropper to the default Image media type.. cropping is working fine and the files are saved correct in media folder. but how can I get the path in razor..I have tried different methods suggested in various our forum threads.. but they are working only when the cropped adds to a doc type image not media type image.. Please help
/Sobin
Could it be related to this issue? http://issues.umbraco.org/issue/U4-386
If you install DAMP 2.0 that would also solve the above problem.
Jeroen
This is the xml of my image in umbraco.config.Please find how can i get cropped image,ie mainHeaderImageCropper.
<mainImage>
<DAMP fullMedia="">
<mediaItem>
<MainHeaderImage id="1174" version="371aac42-75a5-4b3f-a7da-4feb089eee2b" parentID="-1" level="1" writerID="0" nodeType="1172" template="0" sortOrder="2" createDate="2012-09-14T16:46:29" updateDate="2012-09-14T16:46:29" nodeName="Desert" urlName="desert" writerName="admin" nodeTypeAlias="MainHeaderImage" path="-1,1174">
<umbracoFile>/media/3444/desert.jpg</umbracoFile>
<mainHeaderImageCropper><![CDATA[]]></mainHeaderImageCropper>
<umbracoWidth>1024</umbracoWidth>
<umbracoHeight>768</umbracoHeight>
<umbracoBytes>845941</umbracoBytes>
<umbracoExtension>jpg</umbracoExtension>
</MainHeaderImage>
</mediaItem>
</DAMP>
</mainImage>
If you look at mainHeaderImageCropper you see no crops are defined yet. This means the crops aren't created yet. If you install DAMP 2.0 this should happen automatically for all new images created. It won't work for images which you already created. You can use this package for that: http://our.umbraco.org/projects/backoffice-extensions/create-crops.
Jeroen
Thanks Jeroen Breuer.
i think default c# image cropping can do the job automatically. if you already have a created image, the app will not work for you.
is working on a reply...