Closed robertjf closed 1 year ago
Hey @robertjf
For only webp, something like this:
"Slimsy": {
"WidthStep": 180,
"UseCropAsSrc": true,
"DefaultQuality": 70,
"TagHelper": {
"SingleSources": [ "gif" ],
"DefaultPictureSources": [
{
"Extension": "webp",
"Quality": 70
}
],
"ImageDimensions": true
}
}
More info is here https://github.com/Jeavon/Slimsy#available-in-v41
@Jeavon so if I configure DefaultPictureSources like that, will it convert a png to webp? As that was myunderstanding of the original render-webp-alternative
attribute - it's not clear what exactly DefaultPictureSources actually does...
@robertjf yes it will provide a webp source element for all origin image types. It should be exactly the same as render-webp-alternative
perfect - thanks @Jeavon :)
Hey @Jeavon, can you provide some guidance/documentation on the following issue (since upgradng)?
I can't work out what is needed in the appSettings configuration to configure this...