Manipulate WebP images in Python

▼魔方 西西 提交于 2019-12-04 11:06:46

问题


I'm looking for something like PIL (Python Imaging Library), which sadly doesn't support WebP images.

I'd like to be able to do resizes and crops. Or at least convert to JPEG and then I can work it with PIL.


回答1:


Take a look at: http://code.google.com/p/python-webm/

I was able to walk through the test file to see how they were doing it.




回答2:


imagemagick's convert tool, version 6.5.7-8 or better, can manipulate WebP images.

Also, Google provides an encoder and decoder for Linux, Windows and Mac OS X.



来源:https://stackoverflow.com/questions/6876502/manipulate-webp-images-in-python

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!