094ikis09/webp-conversion-bundle
Pros:
--create flag prevents accidental overwrites, reducing operational risk during initial adoption.<picture> tags, simplifying frontend integration without manual asset path management.Cons:
symfony/console, symfony/twig-bridge) or a custom wrapper, adding complexity.imagick or gd PHP extensions, which may not be pre-configured in all environments.ConsoleComponent or via spatie/laravel-artisan.tightenco/ziggy + Twig) to use the filter.vapor, spatie/laravel-medialibrary, or intervention/image would require custom logic to avoid conflicts.league/flysystem).imagick or gd may require server-level configuration (e.g., Docker, shared hosting).--force flag risks overwriting originals if misused; no backup mechanism.mix, vite) or CDNs?Symfony\Component\Console\Application.@webp('/path/to/image.jpg')) or a custom helper (webp_url()) that uses Laravel’s filesystem and imagick/gd directly.vapor/spatie/laravel-medialibrary, extend the bundle’s logic to hook into model events (e.g., saving) to auto-convert uploads.intervention/image, evaluate if this bundle adds value or if native Intervention methods suffice.public/images/thumbnails).--create --dry-run first.<picture> tag generator in Blade that checks for WebP existence before serving fallbacks.@webpPicture('/images/product.jpg', 'product')
deployer or GitHub Actions).imagick or gd is installed and enabled (php -m | grep imagick).composer.json or a .env check (e.g., if (!extension_loaded('imagick')) die('WebP conversion requires Imagick.');).league/flysystem adapters if needed.file, redis) to store WebP paths to avoid reprocessing.Console and TwigBridge components (if not already present).imagick preferred for quality).vendor/ or use a custom repository.php artisan down).failed_jobs table for queued versions).imagick upgrades) could break compatibility.laravel-queue (database, redis).memory_limit adjustments.public/images/{year}/{month}).parallel-lint or symfony/process to run conversions in parallel.filemtime).How can I help you explore Laravel packages today?