rosell-dk / webp-express

Wordpress plugin for serving autogenerated WebP images instead of jpeg/png to browsers that supports WebP
GNU General Public License v3.0
221 stars 63 forks source link

convert-im6.q16: delegate failed #307

Open robots4life opened 5 years ago

robots4life commented 5 years ago

Using webp-express on Site A and managed to remote connect to Site B using webp-express on a server that supports webp conversion.

When trying to convert this image PIA13128 I get this error log from Site B and the last few lines from Site A.

[27-Jul-2019 13:42:35] WARNING: [pool www] child 3658 said into stderr: "convert-im6.q16: delegate failed `'cwebp' -quiet %Q '%i' -o '%o'' @ error/delegate.c/InvokeDelegate/1919."

[27-Jul-2019 13:42:35] WARNING: [pool www] child 3658 said into stderr: "sh: 1: gm: not found"

[27-Jul-2019 13:42:36] WARNING: [pool www] child 3775 said into stderr: "/shared/httpd/SiteB/htdocs/wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-linux-1.0.2-shared: error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory"

[27-Jul-2019 13:42:36] WARNING: [pool www] child 3775 said into stderr: "/shared/httpd/SiteB/htdocs/wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-linux-1.0.2-static: error while loading shared libraries: libjpeg.so.8: cannot open shared object file: No such file or directory"

[27-Jul-2019 13:42:40] WARNING: [pool www] child 3775 said into stderr: "/shared/httpd/SiteB/htdocs/wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-linux-1.0.2-shared: error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory"

[27-Jul-2019 13:42:40] WARNING: [pool www] child 3775 said into stderr: "/shared/httpd/SiteB/htdocs/wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-linux-1.0.2-static: error while loading shared libraries: libjpeg.so.8: cannot open shared object file: No such file or directory"

[27-Jul-2019 13:44:13] WARNING: [pool www] child 3658, script '/shared/httpd/SiteA/htdocs/wp-admin/async-upload.php' (request: "POST /wp-admin/async-upload.php") execution timed out (120.585652 sec), terminating

[27-Jul-2019 13:44:13] WARNING: [pool www] child 3658 exited on signal 15 (SIGTERM) after 133.772823 seconds from start

[27-Jul-2019 13:44:13] NOTICE: [pool www] child 4017 started

I believe I can fix the execution timeout on Site A easily, however on Site B I have no clue how to tackle the convert-im6.q16: delegate failed or sh: 1: gm: not found or the other errors.

When I configure and test the cwebp or gd extension on Site B all works fine per logs, the conversion checks out. Site B is a default, fresh WP install, using the 2019 theme.

Only thing changed there is the permalinks settings being set to a custom /%category%/%postname%/ and category base being a . as otherwise Site A would not be able to connect to the API endpoint of Site B correctly.

Do you know what is going on?

When I disable webp-express on Site A I can convert the same jpg image just fine to a set of various image sizes. But I would love to be able to serve webp images of course. :wink:

WebP Express 0.14.21. Conversion triggered using bulk conversion, 2019-07-27 14:06:21

Converter set to: cwebp

*WebP Convert 2.1.4*  ignited.

- PHP version: 7.2.17

- Server software: Apache/2.4.38 (Unix) OpenSSL/1.1.0j

Cwebp converter ignited

Options:

------------

The following options have been set explicitly. Note: it is the resulting options after merging down the "jpeg" and "png" options and any converter-prefixed options.

- source: [doc-root]/wp-content/plugins/webp-express/test/dice.png

- destination: [doc-root]/wp-content/webp-express/webp-images/doc-root/wp-content/plugins/webp-express/test/dice.png.webp

- alpha-quality: 85

- encoding: "auto"

- low-memory: true

- log-call-arguments: true

- metadata: "all"

- method: 6

- near-lossless: 60

- quality: 85

- use-nice: true

- command-line-options: ""

- try-common-system-paths: true

- try-supplied-binary-for-os: true

The following options have not been explicitly set, so using the following defaults:

- auto-filter: false

- default-quality: 85

- max-quality: 85

- preset: "none"

- size-in-percentage: null (not set)

- skip: false

- rel-path-to-precompiled-binaries: *****

------------

Encoding is set to auto - converting to both lossless and lossy and selecting the smallest file

Converting to lossy

Locating cwebp binaries

No cwebp binaries where located in common system locations

Checking if we have a supplied binary for OS: Linux... We do.

We in fact have 3

A total of 3 cwebp binaries where found

Detecting versions of the cwebp binaries found (and verifying that they can be executed in the process)

Executing: [doc-root]/wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-linux-1.0.2-shared -version

Exec failed (the cwebp binary was not found at path: [doc-root]/wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-linux-1.0.2-shared)

Executing: [doc-root]/wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-linux-1.0.2-static -version

Exec failed (the cwebp binary was not found at path: [doc-root]/wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-linux-1.0.2-static)

Executing: [doc-root]/wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-linux-0.6.1 -version. Result: version: 0.6.1

Trying executing the cwebs found until success. Starting with the ones with highest version number.

Creating command line options for version: 0.6.1

Quality: 85. 

The near-lossless option ignored for lossy

Trying to convert by executing the following command:

nice [doc-root]/wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-linux-0.6.1 -metadata all -q 85 -alpha_q '85' -m 6 -low_memory '[doc-root]/wp-content/plugins/webp-express/test/dice.png' -o '[doc-root]/wp-content/webp-express/webp-images/doc-root/wp-content/plugins/webp-express/test/dice.png.webp.lossy.webp' 2>&1

*Output:* 

Saving file '[doc-root]/wp-content/webp-express/webp-images/doc-root/wp-content/plugins/webp-express/test/dice.png.webp.lossy.webp'

File:      [doc-root]/wp-content/plugins/webp-express/test/dice.png

Dimension: 674 x 515 (with alpha)

Output:    70334 bytes Y-U-V-All-PSNR 46.69 45.38 45.53   46.24 dB

block count:  intra4: 659

              intra16: 760  (-> 53.56%)

              skipped block: 722 (50.88%)

bytes used:  header:            252  (0.4%)

             mode-partition:   3725  (5.3%)

             transparency:    49632 (58.8 dB)

 Residuals bytes  |segment 1|segment 2|segment 3|segment 4|  total

  intra4-coeffs:  |    7648 |     334 |     143 |     135 |    8260  (11.7%)

 intra16-coeffs:  |      52 |      31 |       5 |      33 |     121  (0.2%)

  chroma coeffs:  |    7683 |     333 |     146 |     127 |    8289  (11.8%)

    macroblocks:  |      49%|       3%|       1%|      44%|    1419

      quantizer:  |      19 |      15 |      12 |       8 |

   filter level:  |       5 |       3 |       2 |       0 |

------------------+---------+---------+---------+---------+-----------------

 segments total:  |   15383 |     698 |     294 |     295 |   16670  (23.7%)

Lossless-alpha compressed size: 49631 bytes

  * Header size: 723 bytes, image data size: 48908

  * Lossless features used: PREDICTION

  * Precision Bits: histogram=4 transform=4 cache=0

  * Palette size:   136

Success

Reduction: 70% (went from 231 kb to 69 kb)

Converting to lossless

Locating cwebp binaries

No cwebp binaries where located in common system locations

Checking if we have a supplied binary for OS: Linux... We do.

We in fact have 3

A total of 3 cwebp binaries where found

Detecting versions of the cwebp binaries found (and verifying that they can be executed in the process)

Executing: [doc-root]/wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-linux-1.0.2-shared -version

Exec failed (the cwebp binary was not found at path: [doc-root]/wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-linux-1.0.2-shared)

Executing: [doc-root]/wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-linux-1.0.2-static -version

Exec failed (the cwebp binary was not found at path: [doc-root]/wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-linux-1.0.2-static)

Executing: [doc-root]/wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-linux-0.6.1 -version. Result: version: 0.6.1

Trying executing the cwebs found until success. Starting with the ones with highest version number.

Creating command line options for version: 0.6.1

Trying to convert by executing the following command:

nice [doc-root]/wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-linux-0.6.1 -metadata all -q 85 -alpha_q '85' -near_lossless 60 -m 6 -low_memory '[doc-root]/wp-content/plugins/webp-express/test/dice.png' -o '[doc-root]/wp-content/webp-express/webp-images/doc-root/wp-content/plugins/webp-express/test/dice.png.webp.lossless.webp' 2>&1

*Output:* 

Saving file '[doc-root]/wp-content/webp-express/webp-images/doc-root/wp-content/plugins/webp-express/test/dice.png.webp.lossless.webp'

File:      [doc-root]/wp-content/plugins/webp-express/test/dice.png

Dimension: 674 x 515

Output:    112876 bytes

Lossless-ARGB compressed size: 112876 bytes

  * Header size: 3462 bytes, image data size: 109389

  * Lossless features used: PREDICTION CROSS-COLOR-TRANSFORM SUBTRACT-GREEN

  * Precision Bits: histogram=4 transform=4 cache=10

Success

Reduction: 52% (went from 231 kb to 110 kb)

Picking lossy

Converted image in 709 ms, reducing file size with 70% (went from 231 kb to 69 kb)

And the other test log.

WebP Express 0.14.21. Conversion triggered using bulk conversion, 2019-07-27 14:05:57

Converter set to: cwebp

*WebP Convert 2.1.4*  ignited.

- PHP version: 7.2.17

- Server software: Apache/2.4.38 (Unix) OpenSSL/1.1.0j

Cwebp converter ignited

Options:

------------

The following options have been set explicitly. Note: it is the resulting options after merging down the "jpeg" and "png" options and any converter-prefixed options.

- source: [doc-root]/wp-content/plugins/webp-express/test/test-pattern-tv.jpg

- destination: [doc-root]/wp-content/webp-express/webp-images/doc-root/wp-content/plugins/webp-express/test/test-pattern-tv.jpg.webp

- encoding: "auto"

- low-memory: true

- log-call-arguments: true

- metadata: "all"

- method: 6

- near-lossless: 100

- quality: 85

- use-nice: true

- command-line-options: ""

- try-common-system-paths: true

- try-supplied-binary-for-os: true

The following options have not been explicitly set, so using the following defaults:

- alpha-quality: 85

- auto-filter: false

- default-quality: 75

- max-quality: 85

- preset: "none"

- size-in-percentage: null (not set)

- skip: false

- rel-path-to-precompiled-binaries: *****

------------

Encoding is set to auto - converting to both lossless and lossy and selecting the smallest file

Converting to lossy

Locating cwebp binaries

No cwebp binaries where located in common system locations

Checking if we have a supplied binary for OS: Linux... We do.

We in fact have 3

A total of 3 cwebp binaries where found

Detecting versions of the cwebp binaries found (and verifying that they can be executed in the process)

Executing: [doc-root]/wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-linux-1.0.2-shared -version

Exec failed (the cwebp binary was not found at path: [doc-root]/wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-linux-1.0.2-shared)

Executing: [doc-root]/wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-linux-1.0.2-static -version

Exec failed (the cwebp binary was not found at path: [doc-root]/wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-linux-1.0.2-static)

Executing: [doc-root]/wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-linux-0.6.1 -version. Result: version: 0.6.1

Trying executing the cwebs found until success. Starting with the ones with highest version number.

Creating command line options for version: 0.6.1

Quality: 85. 

Consider setting quality to "auto" instead. It is generally a better idea

Trying to convert by executing the following command:

nice [doc-root]/wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-linux-0.6.1 -metadata all -q 85 -alpha_q '85' -m 6 -low_memory '[doc-root]/wp-content/plugins/webp-express/test/test-pattern-tv.jpg' -o '[doc-root]/wp-content/webp-express/webp-images/doc-root/wp-content/plugins/webp-express/test/test-pattern-tv.jpg.webp.lossy.webp' 2>&1

*Output:* 

Saving file '[doc-root]/wp-content/webp-express/webp-images/doc-root/wp-content/plugins/webp-express/test/test-pattern-tv.jpg.webp.lossy.webp'

File:      [doc-root]/wp-content/plugins/webp-express/test/test-pattern-tv.jpg

Dimension: 340 x 280

Output:    8416 bytes Y-U-V-All-PSNR 45.30 48.37 49.39   46.20 dB

block count:  intra4: 276

              intra16: 120  (-> 30.30%)

              skipped block: 50 (12.63%)

bytes used:  header:            356  (4.2%)

             mode-partition:    919  (10.9%)

 Residuals bytes  |segment 1|segment 2|segment 3|segment 4|  total

  intra4-coeffs:  |    5170 |       0 |       2 |       0 |    5172  (61.5%)

 intra16-coeffs:  |     455 |       0 |      11 |       0 |     466  (5.5%)

  chroma coeffs:  |    1437 |       0 |      36 |       0 |    1473  (17.5%)

    macroblocks:  |      90%|       0%|       9%|       0%|     396

      quantizer:  |      15 |      10 |       8 |       8 |

   filter level:  |       4 |       2 |       0 |       0 |

------------------+---------+---------+---------+---------+-----------------

 segments total:  |    7062 |       0 |      49 |       0 |    7111  (84.5%)

Success

Reduction: 71% (went from 28 kb to 8 kb)

Converting to lossless

Locating cwebp binaries

No cwebp binaries where located in common system locations

Checking if we have a supplied binary for OS: Linux... We do.

We in fact have 3

A total of 3 cwebp binaries where found

Detecting versions of the cwebp binaries found (and verifying that they can be executed in the process)

Executing: [doc-root]/wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-linux-1.0.2-shared -version

Exec failed (the cwebp binary was not found at path: [doc-root]/wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-linux-1.0.2-shared)

Executing: [doc-root]/wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-linux-1.0.2-static -version

Exec failed (the cwebp binary was not found at path: [doc-root]/wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-linux-1.0.2-static)

Executing: [doc-root]/wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-linux-0.6.1 -version. Result: version: 0.6.1

Trying executing the cwebs found until success. Starting with the ones with highest version number.

Creating command line options for version: 0.6.1

Trying to convert by executing the following command:

nice [doc-root]/wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-linux-0.6.1 -metadata all -q 85 -alpha_q '85' -lossless -m 6 -low_memory '[doc-root]/wp-content/plugins/webp-express/test/test-pattern-tv.jpg' -o '[doc-root]/wp-content/webp-express/webp-images/doc-root/wp-content/plugins/webp-express/test/test-pattern-tv.jpg.webp.lossless.webp' 2>&1

*Output:* 

Saving file '[doc-root]/wp-content/webp-express/webp-images/doc-root/wp-content/plugins/webp-express/test/test-pattern-tv.jpg.webp.lossless.webp'

File:      [doc-root]/wp-content/plugins/webp-express/test/test-pattern-tv.jpg

Dimension: 340 x 280

Output:    23242 bytes

Lossless-ARGB compressed size: 23242 bytes

  * Header size: 1596 bytes, image data size: 21620

  * Lossless features used: PREDICTION CROSS-COLOR-TRANSFORM SUBTRACT-GREEN

  * Precision Bits: histogram=3 transform=3 cache=8

Success

Reduction: 20% (went from 28 kb to 23 kb)

Picking lossy

Converted image in 269 ms, reducing file size with 71% (went from 28 kb to 8 kb)
robots4life commented 4 years ago

@rosell-dk Is there anything I can do to get rid of this error? On the other hand, do you have an idea why this is happening?

rosell-dk commented 4 years ago

I shall have a look at this soon. However, not today. Thanks for your patience :)

robots4life commented 4 years ago

Thank you very much.

rosell-dk commented 4 years ago

Do I understand this correctly, that things generally works, but this specific image is giving trouble? It could perhaps be the filename. What is the filename? Can you try uploading the problematic image to Site B and see if Site B can convert it? If it cannot, please paste the log here

rosell-dk commented 4 years ago

The error log on Site B shows warnings from the following convertion methods that fails: ImageMagick, GraphicsMagick and then Cwebp. Does any of these converters work on site B? If not, you could disable them. That will prevent this stuff from being written to the error log

robots4life commented 4 years ago

Do I understand this correctly, that things generally works, but this specific image is giving trouble?

No, generally the conversion does not work, regardless of if it is this image or another image. But to make 100% sure I will setup Site A and B fresh and do exactly what I am trying to do and then let you know the results.

It could perhaps be the filename. What is the filename?

The filename is PIA13128.jpg. It is from here. https://photojournal.jpl.nasa.gov/jpeg/PIA13128.jpg

Can you try uploading the problematic image to Site B and see if Site B can convert it? If it cannot, please paste the log here.

I will do that and report back.

Does any of these converters work on site B?

I will check and report back to you.

This will take a couple of days to get back to you. Thank you heaps for taking the time to look into this. You will hear from me in this issue.

rosell-dk commented 4 years ago

ok :)

rosell-dk commented 4 years ago

The following entries in the error log is puzzles me:

Checking if we have a supplied binary for OS: Linux... We do.
We in fact have 3
A total of 3 cwebp binaries where found
Detecting versions of the cwebp binaries found (and verifying that they can be executed in the process)
Executing: [doc-root]/wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-linux-1.0.2-shared -version
Exec failed (the cwebp binary was not found at path: [doc-root]/wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-linux-1.0.2-shared)

Executing: [doc-root]/wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-linux-1.0.2-static -version
Exec failed (the cwebp binary was not found at path: [doc-root]/wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-linux-1.0.2-static)

Executing: [doc-root]/wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-linux-0.6.1 -version. Result: version: 0.6.1

Three binaries are reported found, but then it is reported that two of them fails because they doesn't exist. That looks like a bug.

Can I have you try again on 0.17.2? I made significant changes in the programming that discovers and executes cwebp binaries. Perhaps the problem is already gone.

rosell-dk commented 4 years ago

It is really strange. Can you tell me if the cwebp-linux-1.0.2-static file is there? (in wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-linux-1.0.2-static)

(on your un-updated system, if you still have that... - the file names of the binaries where changed in 0.17.2)

rosell-dk commented 4 years ago

The strange part being that we get the message: "Exec failed (the cwebp binary was not found at path...". This message is generated when the exec() returns 127, which it is only supposed to do when the file is missing.

rosell-dk commented 4 years ago

I think perhaps I'm onto something. You log says:

[27-Jul-2019 13:42:36] WARNING: [pool www] child 3775 said into stderr: "/shared/httpd/SiteB/htdocs/wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-linux-1.0.2-shared: error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory"

The "cwebp-linux-1.0.2-shared" executable is really a shared library. It depends on other libraries being installed on the system. It cannot find one of these and it complains "cannot open shared object file: No such file or directory" and returns 127. It kind of makes sense.

From version 1.0.0 on, Google unfortunately shifted from releasing executables (which contains all the libraries that is needed) to releasing shared object libraries. And these shared object libraries doesn't work on all systems. And it seems a 127 is returned in such cases.

I must read up on these things. Beginning here.

rosell-dk commented 4 years ago

I notice that the new cwebp 1.0.3 (which we are now using) has considerably less dependencies than cwebp 1.0.2. cwebp 1.0.2 has 27 dependencies. cwebp 1.0.3 has just the following five (using the ldd command):

linux-vdso.so.1 =>  (0x00007ffeb037e000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f27cf8f6000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f27cf5ed000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f27cf223000)
/lib64/ld-linux-x86-64.so.2 (0x00007f27cff6f000)

And I notice that "libGl.so" (which was missing in your case) is no longer on the list.

rosell-dk commented 4 years ago

Using the ldd command to my surprise also returns dependencies for the cwebp 0.6.1 executable. Output:

linux-vdso.so.1 =>  (0x00007ffd2df9f000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f2bd4476000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f2bd416d000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f2bd3da3000)
/lib64/ld-linux-x86-64.so.2 (0x00007f2bd4693000)

I notice that it is the exact same five dependencies here. I'm puzzled why cwebp-103-linux-x86-64 shows up as a "shared library" in my explorer while cwebp-061-linux-x86-64 shows up as an "executable".

rosell-dk commented 4 years ago

I also notice this line in your error log (thank you so much for posting it - much is revealed there!)

cwebp-linux-1.0.2-static: error while loading shared libraries: libjpeg.so.8: cannot open shared object file: No such file or directory

It seems my attempt to build an executable free from dependencies failed!

robots4life commented 4 years ago

@rosell-dk Amazing work! Thank you heaps! I am following this. Is there any more info you need from me?

It is really strange. Can you tell me if the cwebp-linux-1.0.2-static file is there? (in wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-linux-1.0.2-static)

(on your un-updated system, if you still have that... - the file names of the binaries where changed in 0.17.2)

I just checked and I still have the un-updated (or old) version of webp-express. ;)

This is the content of the folder wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/.

Screenshot_20191109_114013

robots4life commented 4 years ago

The following entries in the error log is puzzles me:

Checking if we have a supplied binary for OS: Linux... We do.
We in fact have 3
A total of 3 cwebp binaries where found
Detecting versions of the cwebp binaries found (and verifying that they can be executed in the process)
Executing: [doc-root]/wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-linux-1.0.2-shared -version
Exec failed (the cwebp binary was not found at path: [doc-root]/wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-linux-1.0.2-shared)

Executing: [doc-root]/wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-linux-1.0.2-static -version
Exec failed (the cwebp binary was not found at path: [doc-root]/wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-linux-1.0.2-static)

Executing: [doc-root]/wp-content/plugins/webp-express/vendor/rosell-dk/webp-convert/src/Convert/Converters/Binaries/cwebp-linux-0.6.1 -version. Result: version: 0.6.1

Three binaries are reported found, but then it is reported that two of them fails because they doesn't exist. That looks like a bug.

Can I have you try again on 0.17.2? I made significant changes in the programming that discovers and executes cwebp binaries. Perhaps the problem is already gone.

Like you ask, I will update everything and then report back on this issue in both cases, if it works flawless or if it breaks. Thank you so much for your work on this. Tremendously appreciated.