This example uses the configuration as is, to create an image according to specs in customImageSettings
@inherits Custom.Hybrid.Razor14
@{
var imgUrl = App.Path + "/assets/img-resize/basic-logo.png";
}
@{
var customImageSettings = AsDynamic(new {
Height = 100,
ResizeMode = "Stretch",
Quality = 50
});
// Merged settings, first one has highes priority
var mergedSettings = AsDynamic(customImageSettings, Settings.Images.Content);
}
<img loading="lazy" src='@Link.Image(imgUrl, mergedSettings)'>