convert input.png -quality 50 -define webp:lossless=true -define webp:method=6 output.webp
Quality can be adjusted with -quality.
-quality
convert input.png -define webp:method=6 output.webp