Copied to clipboard

Flag this post as spam?

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


  • Sebastian Dammark 581 posts 1385 karma points
    Jun 20, 2011 @ 13:01
    Sebastian Dammark
    0

    Suggestion: Create ImageCrop upon request ...

    The DAMP 2.0 looks very cool ... I can't wait to get my hands on it. Thanx for a great demo at Codegarden 11

    One thing that would come in handy would be if it could create an image crop when the GetMedia is called.

    My current issue is that I've uploaded 500 images and they're in use around the site.  Now I've added a new crop, but I have to save each image again to create the new image crop.

    I know it will affect performance but it will only be for a limited time until all crops have been created.

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Jun 20, 2011 @ 13:20
    Jeroen Breuer
    0

    This is possible with the DAMP 2.0 BETA. I wrote an beforesave event in which the crop gets created. This event simply calls a helper method. See this file http://damp.codeplex.com/SourceControl/changeset/view/74901#1765747. All you need to do is call this helper method before you call the GetMedia method.

    For example:

    DAMP_Helper.CallImagecropper(mediaId, false);
    library.GetMedia(mediaId, false);

    You can find the source of the CallImagecropper method in this file: http://damp.codeplex.com/SourceControl/changeset/view/74901#1765798

    Jeroen

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Jul 19, 2011 @ 13:11
    Jeroen Breuer
    0

    Hello,

    I've just released a package which can do this for you: Create Crops.

    It will create crops for all the media items you have.

    Jeroen

  • facundo 2 posts 23 karma points
    Nov 05, 2013 @ 14:53
    facundo
    0

    Jeroen Breuer It doesn't work with some images. I have uploaded some images with DAMP Image picker and add a new crop for these pictures and I don't see the cropped images.

     

    Best regards!

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Nov 24, 2013 @ 20:27
    Jeroen Breuer
    0

    Hello,

    The Create Crops package probably doesn't work on Umbraco v6. I don't plan on making version that works on v6 because I stopped using the default image cropper and started using CropUp.

    Jeroen

Please Sign in or register to post replies

Write your reply to:

Draft