79448350

Date: 2025-02-18 13:03:11
Score: 0.5
Natty:
Report link

When I do something like:

 var customSettingsMax = AsDynamic(new {
    Width = 350,
    ResizeMode = "Max",
    format= "webp",
    quality= 100
  });

<img loading="lazy" src='@Link.Image(imgUrl, customSettingsMax)'>

It wil not generate a webp. However, when I do:

<img loading="lazy" src='@Link.Image(imgUrl, customSettingsMax, format: "webp")'>

It will, so I think the format setting is ignored somewhere....

Reasons:
  • Has code block (-0.5):
  • Starts with a question (0.5): When I
  • Low reputation (0.5):
Posted by: MBouwman