Releases: buglinjo/laravel-webp
Small Bugfixes
Details:
Bug: CwebpShellExecutionFailed Exception Misconfiguration
- Issue: When transitioning to the
Process
class for shell execution, theCwebpShellExecutionFailed
exception was not correctly configured to handle an array input, leading to improper error handling. - Fix: Updated the
CwebpShellExecutionFailed
exception to properly expect and handle an array input, ensuring accurate error reporting and handling during theProcess
execution.
Utilizing CWebp with Laravel's Process Class
To ensure compatibility with the rewritten CWebp, which now utilizes the Laravel Process class, it is necessary to update the minimum required version of Laravel to 10. This change is essential because the Process class was introduced in Laravel 10, and setting this requirement helps avoid any breaking changes.
Full Changelog: v2.3.4...v3.0.0
Adding Laravel 11.x Compatibility
Fixed the bug with config overwrite
Config overwrite on composer update fixed
Adding Laravel 10.x Compatibility
v2.3.2 Bump dependencies for Laravel 10
Adding Config Tag Publisher
Fixes the issue when config file was not being published when using --tab=config
flag.
Now both
php artisan vendor:publish --provider="Buglinjo\LaravelWebp\WebpServiceProvider"
and
php artisan vendor:publish --provider="Buglinjo\LaravelWebp\WebpServiceProvider" --tag=config
works correctly and publishes config file.
PHP GD Driver Support
New driver php-gd
support added and cleaned up code.
To choose this driver, update default_driver
in laravel-webp.php
config file to php-gd
instead of cwebp
.
Note: it requires php-gd
extension to be installed!
Laravel 9 Support
Merge pull request #20 from laravel-shift/l9-compatibility Laravel 9.x Compatibility
PHP 8 Support
Merge pull request #17 from abdallhsamy/master add php 8 support
Nice Error Message
Before no error was thrown if the conversion failed. With this change, thanks to @jelhan, a consumer gets a nice error message.