Copied to clipboard

Flag this post as spam?

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


  • Gordon Saxby 1465 posts 1887 karma points
    Dec 14, 2016 @ 11:51
    Gordon Saxby
    0

    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.

    The project uses ModelBuilder.

  • Gordon Saxby 1465 posts 1887 karma points
    Dec 14, 2016 @ 12:14
    Gordon Saxby
    100

    Just found that there was a custom property value converter in the project. I removed that and now the crops are working :-)

  • 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.

Please Sign in or register to post replies