It appears that my server has libpng15.so.0 installed instead of version 12.
Did you install it with ‘make install’ at the end when you compiled it?
I don’t have root access to the server so that won’t work. I have to manually copy them into the wp-content/ewww directory which I have done.
ah, ok. Then copy it to ewww/cwebp-custom
I have already done that. It still says it is missing.
Hmm, that’s strange, can you post the debug information when you have your compiled version in the ewww/ folder via pastebin.com please?
You’ll need to turn on the debugging option, then scroll to the bottom of the settings page to see the debug information.
What is the filesize of your cwebp-custom?
Ah, that’s why it won’t work, the plugin checks to be sure it is at least 15000 bytes.
I just ran the compile on my local machine, and I get the same filesize. The only problem is it doesn’t have any JPG or PNG support (which makes it kind of useless). Re-run the configure script, and see what you get at the end for JPEG and PNG support.
Mine looks something like this:
Tools:
cwebp : yes
Input format support
====================
JPEG : no
PNG : no
TIFF : no
WIC : no
The problem is that the libpng and libjpeg header/development files aren’t present, which is necessary to compile in JPEG and PNG support.
I’ll fire up a centos7 system myself and see what I can come up with.
The first thing I would recommend is to see if they will install libpng12 for you. It’s available from the standard repository, so nothing special needed.
Beyond that, you could fire up a centos7 VPS with someone like Digital Ocean, install the build tools, and the libpng and libjpeg dev packages, compile it, and then copy it over to your webserver. But by the time you do all that, you might be better off just using our API (https://ewww.io/plans/) if you really want WebP.
As a bonus, webp creation doesn’t cost extra, even though it is an extra image generation. So you only pay for the stuff you optimize, not for the extra webp images.
I discovered the precompiled webp binary files here https://downloads.webmproject.org/releases/webp/libwebp-0.5.0-linux-x86-64.tar.gz which worked like a champ. Copied into the ewww directory and called it cwep-custom.
Good find, I should have thought to try that. I’ll have to remember that for the next person.
Good news, the next version of EWWW will have a fully static version of cwebp, so it should work on nearly every linux server out there. I tested it on all currently supported versions of Ubuntu, Debian, CentOS, 32 & 64 bit.