I am new to Umbraco and am following a course that is based on Umbraco 8, though I am follwoing along with Umbraco 12. In the course image cropper is used at one point, but the way to get an image to the view seems to have changed. This is how the code looks now:
<div class="row">
@foreach (var item in lastestNews)
{
var imgCropper = item.Value<ImageCropperValue>("articleImage");
var thumbUrl = imgCropper.Src + imgCropper.GetCropUrl("Thumb");
<div class="col-md-4">
<div class="card" style="width: 18rem;">
<img class="card-img-top" src="@item.GetCropUrl(cropAlias: "thumb", useCropDimensions: true)" alt="Card image cap">
<div class="card-body">
<h5 class="card-title">@item.Name</h5>
<p class="card-text">@item.Value("leadIn")</p>
<a href="@item.Url()" class="btn btn-primary">Read article</a>
</div>
</div>
</div>
}
</div>
</div> ```
Would be really happy if someone could point to how that is handled in Umbraco 12.