Error upon first attempt to convert an image
-
I installed your plugin and tried to convert one image to understand how it works and what the process for converting more images later is, and as soon as I checked the conversion options (no tweaking though), and then chose an image to try to convert to WebP, I got the following message (pasting the output log with altered file path parent to the wp-content directory – all else unchanged)
WebP Convert 2.9.0 ignited PHP version: 8.1.27 Server software: nginx/1.24.0 source: {{myPath}}/wp-content/uploads/2024/01/fixedratio_20230725123153_f367e78a-150x200.jpeg destination: {{myPath}}/wp-content/webp-express/webp-images/doc-root/wp-content/uploads/2024/01/fixedratio_20230725123153_f367e78a-150x200.jpeg.webp Cwebp converter ignited Destination folder does not exist. Creating folder: {{myPath}}/wp-content/webp-express/webp-images/doc-root/wp-content/uploads/2024/01 Options: ------------ - encoding: "auto" - quality: 80 - auto-limit: true - alpha-quality: 80 - near-lossless: 60 - metadata: "none" - method: 6 - sharp-yuv: true - auto-filter: false - low-memory: false - preset: "none" - log-call-arguments: true - use-nice: true - try-cwebp: true - try-discovering-cwebp: true - try-common-system-paths: true - try-supplied-binary-for-os: true - skip-these-precompiled-binaries: "" - rel-path-to-precompiled-binaries: ***** - command-line-options: "" Note that these are the resulting options after merging down the "jpeg" and "png" options and any converter-prefixed options Defaults: ------------ The following options was not set, so using the following defaults: - size-in-percentage: null (not set) Encoding is set to auto - converting to both lossless and lossy and selecting the smallest file Converting to lossy Looking for cwebp binaries. Discovering if a plain cwebp call works (to skip this step, disable the "try-cwebp" option) - Executing: cwebp -version 2>&1. Result: Exec failed (the cwebp binary was not found at path: cwebp, or it had missing library dependencies) Nope a plain cwebp call does not work (spent 2 ms) Discovering binaries using "which -a cwebp" command. (to skip this step, disable the "try-discovering-cwebp" option) Found 0 binaries (spent 18 ms) Discovering binaries by peeking in common system paths (to skip this step, disable the "try-common-system-paths" option) Found 0 binaries (spent 25 ms) Discovering binaries which are distributed with the webp-convert library (to skip this step, disable the "try-supplied-binary-for-os" option) Checking if we have a supplied precompiled binary for your OS (Linux)... We do. We in fact have 4 Found 4 binaries (spent 1 ms) - {{myPath}}/wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-120-linux-x86-64 - {{myPath}}/wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-110-linux-x86-64 - {{myPath}}/wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-103-linux-x86-64-static - {{myPath}}/wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-061-linux-x86-64 Discovering cwebp binaries took: 46 ms Binaries ordered by version number. - {{myPath}}/wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-120-linux-x86-64: (version: 1.2.0) - {{myPath}}/wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-110-linux-x86-64: (version: 1.1.0) - {{myPath}}/wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-103-linux-x86-64-static: (version: 1.0.3) - {{myPath}}/wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-061-linux-x86-64: (version: 0.6.1) Starting conversion, using the first of these. If that should fail, the next will be tried and so on. Tested "nice" command - it works :) Checking checksum for supplied binary: {{myPath}}/wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-120-linux-x86-64 Checksum test took: 25 ms Creating command line options for version: 1.2.0 Running auto-limit Quality setting: 80. Quality of jpeg: 82. Auto-limit result: 80 (no limiting needed this time). The near-lossless option ignored for lossy Trying to convert by executing the following command: nice {{myPath}}/wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-120-linux-x86-64 -metadata none -q 80 -alpha_q '80' -sharp_yuv -m 6 '{{myPath}}/wp-content/uploads/2024/01/fixedratio_20230725123153_f367e78a-150x200.jpeg' -o '{{myPath}}/wp-content/webp-express/webp-images/doc-root/wp-content/uploads/2024/01/fixedratio_20230725123153_f367e78a-150x200.jpeg.webp.lossy.webp' 2>&1 Output: nice: '{{myPath}}/wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-120-linux-x86-64': Permission denied Executing cwebp binary took: 4 ms Exec failed (return code: 126) Note: You can prevent trying this precompiled binary, by setting the "skip-these-precompiled-binaries" option to "cwebp-120-linux-x86-64" Checking checksum for supplied binary: {{myPath}}/wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-110-linux-x86-64 Checksum test took: 21 ms Creating command line options for version: 1.1.0 The near-lossless option ignored for lossy Trying to convert by executing the following command: nice {{myPath}}/wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-110-linux-x86-64 -metadata none -q 80 -alpha_q '80' -sharp_yuv -m 6 '{{myPath}}/wp-content/uploads/2024/01/fixedratio_20230725123153_f367e78a-150x200.jpeg' -o '{{myPath}}/wp-content/webp-express/webp-images/doc-root/wp-content/uploads/2024/01/fixedratio_20230725123153_f367e78a-150x200.jpeg.webp.lossy.webp' 2>&1 Output: nice: '{{myPath}}/wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-110-linux-x86-64': Permission denied Executing cwebp binary took: 5 ms Exec failed (return code: 126) Note: You can prevent trying this precompiled binary, by setting the "skip-these-precompiled-binaries" option to "cwebp-110-linux-x86-64" Checking checksum for supplied binary: {{myPath}}/wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-103-linux-x86-64-static Checksum test took: 32 ms Creating command line options for version: 1.0.3 The near-lossless option ignored for lossy Trying to convert by executing the following command: nice {{myPath}}/wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-103-linux-x86-64-static -metadata none -q 80 -alpha_q '80' -sharp_yuv -m 6 '{{myPath}}/wp-content/uploads/2024/01/fixedratio_20230725123153_f367e78a-150x200.jpeg' -o '{{myPath}}/wp-content/webp-express/webp-images/doc-root/wp-content/uploads/2024/01/fixedratio_20230725123153_f367e78a-150x200.jpeg.webp.lossy.webp' 2>&1 Output: nice: '{{myPath}}/wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-103-linux-x86-64-static': Permission denied Executing cwebp binary took: 4 ms Exec failed (return code: 126) Note: You can prevent trying this precompiled binary, by setting the "skip-these-precompiled-binaries" option to "cwebp-103-linux-x86-64-static" Checking checksum for supplied binary: {{myPath}}/wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-061-linux-x86-64 Checksum test took: 29 ms Creating command line options for version: 0.6.1 The near-lossless option ignored for lossy Trying to convert by executing the following command: nice {{myPath}}/wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-061-linux-x86-64 -metadata none -q 80 -alpha_q '80' -sharp_yuv -m 6 '{{myPath}}/wp-content/uploads/2024/01/fixedratio_20230725123153_f367e78a-150x200.jpeg' -o '{{myPath}}/wp-content/webp-express/webp-images/doc-root/wp-content/uploads/2024/01/fixedratio_20230725123153_f367e78a-150x200.jpeg.webp.lossy.webp' 2>&1 Output: nice: '{{myPath}}/wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-061-linux-x86-64': Permission denied Executing cwebp binary took: 4 ms Exec failed (return code: 126) Note: You can prevent trying this precompiled binary, by setting the "skip-these-precompiled-binaries" option to "cwebp-061-linux-x86-64" Error: Failed converting. Check the conversion log for details.
I’m confused. On one hand I see “Permission denied” errors, on the other hand I see “missing dependencies” errors.
What do I need to do next to get it to work?
- The topic ‘Error upon first attempt to convert an image’ is closed to new replies.