Copied to clipboard

Flag this post as spam?

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


  • Daljit Kaur 16 posts 87 karma points
    Feb 02, 2021 @ 06:46
    Daljit Kaur
    0

    Hi,

    I am using umbraco v8.11.

    In order to get value of image cropper in a partial view, I am using :

    var image = item.Value<ImageCropperValue>("NewsImage");
    
    var url = image.src + image.GetCropUrl("Thumbnail");
    

    But i see the obsolete warning.

    If i use anything else, instead of this, the image is null.

    Is there any good, fresh syntax to fetch imagecropper value ?

Please Sign in or register to post replies

Write your reply to:

Draft