Convert all images to webp

Webp images are much smaller than png images. It would be really great if there was a plugin to convert all png images in vault to webp and update all the file links.

The interface should include the quality of the images. I think the default should be 100%.

This package might work: https://www.npmjs.com/package/webp-converter

Even better would be a toggleable option to automatically convert images to webp when you paste them into a file.

I do exactly that with this freeware

Once the images have been converted from .png to .webp, I change back their extension to .png and overwrite the original .pngs in the Obsidian folder. In this way I’m not forced to edit anything inside Obsidian