Tag
Webp
2 posts tagged Webp.
Posts

09/27/2026
WebP to JPG in PHP: Paint on White or Get Black Areas
Load with imagecreatefromwebp(), save with imagejpeg() or imagepng(). For JPG, paint onto white first or transparent pixels turn black.

08/23/2025
PNG and JPG to WebP in PHP: Quality 82, Keep the Smaller
A short GD script that converts a folder to WebP, preserves PNG transparency, and - the part usually missing - keeps the original whenever the WebP comes out larger, which happens more than you would think.