Closed kjmalek closed 1 year ago
Thanks for this, would be great to add WebP support. We'll review shortly.
Thanks, @eloyer. Let me know if you see anything that should be adjusted. This PR could provide a helpful path for adding AVIF support in the future too, but I'm a little hesitant to add it at the moment considering the format doesn't yet have as a wide of support in browsers and requires PHP 8 or later for support by GD.
@kjmalek All looks good, thanks so much for adding this!
WebP has become widely supported by all major browsers according to Can I Use.
Additionally, WebP has been broadly supported by PHP's GD library since PHP 7.1.
This PR adds support for both external links and uploads.