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
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.
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.
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
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 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.
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.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted