Re: updating libwebp
"Shane D. Bishop" <[email protected]>
| Newsgroups | gmane.comp.video.graphicsmagick.help |
|---|---|
| Message-ID | <[email protected]> |
>> Hi all, I have a question regarding the WebP support in GM, specifically as to >> whether it is possible to get my existing copy of GM to use a newer build of > > libwebp. >> I have a Debian 9 box with the stock versions of php-gmagick, libgraphicsmagick, > > and libwebp, 2.0.4-rc1, 1.3.25-8, and 0.5.2-1 respectively. >> Alongside that, I also have version 0.6.1 of libwebp compiled from source, soon > > to be updated to version 1.0.0. >> The newer version of libwebp is installed in /usr/local/lib/ whereas the > > system-installed one is in /usr/lib/x86_64-linux-gnu/ > > If I install/copy the newer libraries for libwebp into > > /usr/lib/x86_64-linux-gnu/ will GM automatically use the newer > > version of libwebp? > You do not necessarily need to copy the library into a system > directory. The directories used depend on the 'ldconfig' > configuration. Some systems look in /usr/local/lib/ by default as > well. > The 1.0.0 version is claimed to be ABI compatible with 0.6.1/0.6.0 so > it should be a drop-in upgrade for 0.6.0. However 0.6.0 is not ABI > compatible with earlier versions so it is not a drop-in upgrade for > earlier versions. So theoretically, trying to run 0.6.x in place of the 0.5.2-1 could cause problems anyway, even if it seems to be working for the most part, right? Since I have used ldconfig on the /usr/local/lib/ folder, I wondered if GM was using the newer version currently, but the 0.5.2 library is named libwebp.so.6 and the 0.6.1 library is named libwebp.so.7. I'm not real familiar with the naming conventions there, but would the difference in file names be due to the ABI breakage? I did try changing the symlinks, restarted php-fpm, and it worked on a test image, but if the ABI is not compatible I should probably not use that in production. > > I suspect the best solution long-term is to compile GM from scratch, > > but I'm not quite ready to make that jump at the moment, so I'm > > hoping that a simple update of the libraries is sufficient here. > It is not difficult to compile GM from scratch on a Debian system. > You just need to add various -dev packages. I thought it might come to that. When I have time, I'll dig into the dependencies and see what I can do. Thanks! ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Graphicsmagick-help mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/graphicsmagick-help