I have written small program to convert webp to jpg in python
import imghdr
from PIL import Image
im = Image.open("unnamed.webp").convert("RGB")
im.save("test.jpg","jpeg")
when executing it gives me following error
No handlers could be found for logger "PIL.ImageFile"
Traceback (most recent call last):
File "webptopng.py", line 3, in <module>
im = Image.open("unnamed.webp").convert("RGB")
File "/usr/local/lib/python2.7/dist-packages/PIL/Image.py", line 2286, in open
% (filename if filename else fp))
IOError: cannot identify image file 'unnamed.webp'
I have installed pillow with webp capability. Here is my pillow installation output
--------------------------------------------------------------------
PIL SETUP SUMMARY
--------------------------------------------------------------------
version Pillow 3.0.0
platform linux2 2.7.3 (default, Jun 22 2015, 19:33:41)
[GCC 4.6.3]
--------------------------------------------------------------------
--- TKINTER support available
--- JPEG support available
*** OPENJPEG (JPEG2000) support not available
--- ZLIB (PNG/ZIP) support available
*** LIBTIFF support not available
--- FREETYPE2 support available
*** LITTLECMS2 support not available
--- WEBP support available
*** WEBPMUX support not available
--------------------------------------------------------------------
Please help me how to proceed.
identify
orconvert
commands? – Kiblah$ unnamed.webp: RIFF (little-endian) data
output of imagemagick$ convert: no decode delegate for this image format 'unnamed.webp' @ error/constitute.c/ReadImage/532. convert: missing an image filename '/dev/null' @ error/convert.c/ConvertImageCommand/3011.
– Kutch