Copied to clipboard

Flag this post as spam?

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


  • Sobin 25 posts 46 karma points
    Sep 13, 2012 @ 16:39
    Sobin
    0

    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

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Sep 13, 2012 @ 17:45
    Jeroen Breuer
    0

    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

  • Sobin 25 posts 46 karma points
    Sep 14, 2012 @ 13:50
    Sobin
    0

    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>
           
         

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Sep 17, 2012 @ 12:44
    Jeroen Breuer
    0

    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

  • Sobin 25 posts 46 karma points
    Sep 17, 2012 @ 12:49
    Sobin
    0

    Thanks Jeroen Breuer.

  • drimage 1 post 21 karma points
    Jun 06, 2013 @ 09:05
    drimage
    0

    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.

Please Sign in or register to post replies

Write your reply to:

Draft