Crops not working when added after image loaded to Media library
I am working on a site which has been upgraded from 7.2.8 to 7.4.3. There are a lot of images in the media library.
After the upgrade, a number of crops were added to the "Image Cropper" datatype. The crops appear when viewing the image in the media library but do not appear on the website until the image is saved in the media library. There are far too many images to manually save them to enable the crops.
I found this which seems to indicate that this issue has been fixed - http://issues.umbraco.org/issue/U4-7695 - but it doesn't seem to have been for this site!?
I have the following code:
var prevPost = new ArticulateRichText(prevItem);
var prevImage = prevPost.Image;
....
var imageUrl = prevImage.GetCropUrl("Featured");
But it doesn't work until the image has been (re)saved in the Media library.
Crops not working when added after image loaded to Media library
I am working on a site which has been upgraded from 7.2.8 to 7.4.3. There are a lot of images in the media library.
After the upgrade, a number of crops were added to the "Image Cropper" datatype. The crops appear when viewing the image in the media library but do not appear on the website until the image is saved in the media library. There are far too many images to manually save them to enable the crops.
I found this which seems to indicate that this issue has been fixed - http://issues.umbraco.org/issue/U4-7695 - but it doesn't seem to have been for this site!?
I have the following code:
But it doesn't work until the image has been (re)saved in the Media library.
The project uses ModelBuilder.
Just found that there was a custom property value converter in the project. I removed that and now the crops are working :-)
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.