PNG to WebP
Convert a PNG to WebP and compare the downloaded file with the source.
Try this example
Load the PNG sample, convert it and check that the downloaded WebP is still 800 × 450. Preview it over a contrasting background to check the transparent corners.
Compare file sizes on disk. WebP may not be smaller for every PNG, and some destinations still require PNG.
Related walkthrough · Resize, crop and convert a web image without stretching it