In this example we use a custom width, but want to use other specs like quality or resizeMode from the Settings.
@inherits Custom.Hybrid.Razor14
@{
var imgUrl = App.Path + "/assets/img-resize/basic-logo.png";
}
<img loading="lazy" src='@Link.Image(imgUrl, Settings.Images.Content, width: 100, height: 50)'>