I\'m trying to convert .jpg images to webp format using PIL.
I\'m using the this code:
from PIL import Image import glob, os for infile in glob.glob
Make sure to install WEBP dev library for your OS. For Debian/Ubuntu it's libwebp-dev. You may need reinstall Pillow as well. In the output of Pillow install log you should see:
WEBP
libwebp-dev
--- WEBP support available