Here's a related tool that can turn a JPEG or PNG into a vector SVG, using the https://github.com/jankovicsandras/imagetracerjs library by András Jankovics
https://tools.simonwillison.net/image-to-svg
Claude transcript for that one is https://gist.github.com/simonw/d2e724c357786371d7cc4b5b5bb87ed0
@simon Is there any way to do the same with webp?