python - .tiffs in PIL: OSError: decoder tiff_jpeg not available -
so, i'm attempting run following code:
from pil import image multi_image = "multi_image.tif" multi = image.open(multi_image) multi.seek(2) multi.save("test.tif")
it's 3 page tif, wherein i'm trying grab second page, results in:
traceback (most recent call last): file "c:\python\lib\site-packages\pil\image.py", line 419, in _getdecoder decoder = getattr(core, decoder_name + "_decoder") attributeerror: module 'pil._imaging' has no attribute 'tiff_jpeg_decoder' during handling of above exception, exception occurred: traceback (most recent call last): file "c:\users\will\desktop\tiffer.py", line 6, in <module> multi.save("test.tif") file "c:\python\lib\site-packages\pil\image.py", line 1860, in save self.load() file "c:\python\lib\site-packages\pil\tiffimageplugin.py", line 1013, in load return super(tiffimagefile, self).load() file "c:\python\lib\site-packages\pil\imagefile.py", line 202, in load args, self.decoderconfig) file "c:\python\lib\site-packages\pil\image.py", line 423, in _getdecoder raise ioerror("decoder %s not available" % decoder_name) oserror: decoder tiff_jpeg not available
i've installed: tiff-3.8.2-1.exe, set install path, uninstalled , reinstalled pillow. read building pillow source might solution i'm looking for, i'm not sure how approach that, of documentation i'm seeing linux.
any appreciated,
thanks!
Comments
Post a Comment