libwebp
1.1、libwebp简介
是什么 ?:library and utilities to encode and decode images inWebPformat.
开发语言:C
开发公司:Google
官方主页:https://developers.google.com/speed/webp
源码仓库:https://github.com/webmproject/libwebp
1.2、通过包管理器安装libwebp
操作系统包管理器安装命令
Allvcpkg
vcpkg install libwebp
vcpkg install libwebp:x64-osx
vcpkg install libwebp:x64-linux
vcpkg install libwebp:x64-windows
Windowsscoopscoop install libwebp
WindowsChocolateychoco install -y webp
macOSHomeBrewbrew install webp
GNU/LinuxLinuxBrewbrew install webp
aptsudo apt-get install -y webp
CentOSyumsudo yum install -y libwebp-tools
dnfsudo dnf install -y libwebp-tools
openSUSEzyppersudo zypper install -y libwebp-tools libwebp-devel
Alpine Linuxapksudo apk add libwebp libwebp-dev

Arch Linux

ArcoLinux

Manjaro Linux

pacmansudo pacman -Syyu --noconfirm
sudo pacman -S    --noconfirm libwebp
Gentoo LinuxPortagesudo emerge libwebp
1.3、通过源码安装libwebp 

step1、安装依赖

下载时cURL
解压时targzip
编译时POSIX shGNU CoreUtilsmakegcclibjpeg-turbolibpnglibtiffgiflib
运行时glibc ( libc.sold-linux-x86-64.so )

step2、使用curl命令下载libwebp源码包 (

curl -LO http://downloads.webmproject.org/releases/webp/libwebp-1.0.2.tar.gz

step3、使用tar解压libwebp源码包

tar vxf libwebp-1.0.2.tar.gz

step4、进入libwebp-1.0.2目录,并查看它的内容

step5、配置、编译、安装

./configure && make && sudo make install
1.4、libwebp中包含的命令
1.5、libweb中包含的头文件
1.6、libweb中包含的库文件
  • libwebp.{a | so | dylib}