codebuds/webp-converter
Lightweight PHP 7.4+ WebP converter for Symfony apps. Convert JPEG/PNG/GIF/BMP to WebP from a file path or Symfony File, with options like quality, saveFile, force, output naming/path, and clear exceptions for invalid types or options.
rosell-dk/webp-convert or Node.js-based tools may fit better."This package lets us automatically convert our image library to WebP—a modern format that loads 30–50% faster than JPEG/PNG, directly improving Core Web Vitals scores and reducing bandwidth costs. For example, if our site serves 10M images/month, switching to WebP could save ~$5K/year in hosting fees while boosting SEO rankings. It’s a low-risk, high-reward tweak that requires minimal dev effort, aligning with our [Performance Roadmap] goal to cut page-load times by 20% by [Q3]. We’d integrate it as part of our next platform upgrade, with batch processing to handle existing assets."
*"This is a lightweight, Symfony-native WebP converter using PHP’s GD library. Key benefits:
Trade-offs:
Proposal: Use this for static assets (e.g., product images, blog thumbnails) during our [Platform Refresh]. For user uploads, we’ll pair it with a validation layer to prevent path injection. Let’s demo the batch-conversion script in our next sync."*
Call to Action:
How can I help you explore Laravel packages today?