Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebP Image Support Issues #150

Closed
timnolte opened this issue Feb 6, 2024 · 0 comments · Fixed by #151
Closed

WebP Image Support Issues #150

timnolte opened this issue Feb 6, 2024 · 0 comments · Fixed by #151
Assignees
Labels
enhancement New feature or request

Comments

@timnolte
Copy link
Member

timnolte commented Feb 6, 2024

The EWWW Image Optimizer Plugin is unable to generate WebP image due to the following error:

sh: 1: cwebp: not found
PHP Fatal error:  Uncaught ImagickException: Failed to read the file in /var/www/vhosts/ndigitals.com/www/releases/202402050307/web/wp-content/plugins/ewww-image-optimizer/common.php:3119
Stack trace:
#0 /var/www/vhosts/ndigitals.com/www/releases/202402050307/web/wp-content/plugins/ewww-image-optimizer/common.php(3119): Imagick->__construct()
#1 /var/www/vhosts/ndigitals.com/www/releases/202402050307/web/wp-content/plugins/ewww-image-optimizer/unique.php(1235): ewww_image_optimizer_imagick_create_webp()
#2 /var/www/vhosts/ndigitals.com/www/releases/202402050307/web/wp-content/plugins/ewww-image-optimizer/unique.php(878): ewww_image_optimizer_webp_create()
#3 /var/www/vhosts/ndigitals.com/www/releases/202402050307/web/wp-content/plugins/ewww-image-optimizer/bulk.php(2014): ewww_image_optimizer()
#4 /var/www/vhosts/ndigitals.com/www/releases/202402050307/web/wp-content/plugins/ewww-image-optimizer/classes/class-ewwwio-cli.php(204): ewww_image_optimizer_bulk_loop()
#5 [internal function]: EWWWIO_CLI->optimize()
#6 phar:///usr/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/CommandFactory.php(100): call_user_func()
#7 [internal function]: WP_CLI\Dispatcher\CommandFactory::WP_CLI\Dispatcher\{closure}()
#8 phar:///usr/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/Subcommand.php(488): call_user_func()
#9 phar:///usr/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(436): WP_CLI\Dispatcher\Subcommand->invoke()
#10 phar:///usr/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(459): WP_CLI\Runner->run_command()
#11 phar:///usr/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1284): WP_CLI\Runner->run_command_and_exit()
#12 phar:///usr/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php(28): WP_CLI\Runner->start()
#13 phar:///usr/bin/wp/vendor/wp-cli/wp-cli/php/bootstrap.php(83): WP_CLI\Bootstrap\LaunchRunner->process()
#14 phar:///usr/bin/wp/vendor/wp-cli/wp-cli/php/wp-cli.php(32): WP_CLI\bootstrap()
#15 phar:///usr/bin/wp/php/boot-phar.php(20): include('...')
#16 /usr/bin/wp(4): include('...')
#17 {main}
  thrown in /var/www/vhosts/ndigitals.com/www/releases/202402050307/web/wp-content/plugins/ewww-image-optimizer/common.php on line 3119

Attempting to run cwebp manually shows that it is in fact not installed in the image.

EWWW Image Optimizer uses jpegtran, optipng, pngout, pngquant, gifsicle, and cwebp. You are missing: jpegtran, optipng, gifsicle. Please install via the Settings Page or the Installation Instructions.

@timnolte timnolte self-assigned this Feb 6, 2024
@timnolte timnolte added the enhancement New feature or request label Feb 6, 2024
timnolte added a commit that referenced this issue Feb 6, 2024
- Fixes #150
- Updates the runtime packages list for builds to include the `webp` package.
timnolte added a commit that referenced this issue Feb 6, 2024
…#151)

- Fixes #150
- Updates the runtime packages list for builds to include the `webp` package.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant