You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
module 'PIL._imaging' has no attribute 'tiff_lzw_decoder' #3195
I tried to use PIL to open tiled TIFF image, compressed in tiff lzw format. Then I got the error: module 'PIL._imaging' has no attribute 'tiff_lzw_decoder'
I did not mention the PIL version in my question, it is 4.2.1. The point of that codes is to show 'how I identify library'. But it is true that PIL version above 4.2 does not contain tiff_lzw_decoder, as you found that it was removed.
So this is not a bug, it is function removal. The image I am using is medical data. It can not go public yet. Sorry. But it has nothing special. You can find any tiff image with lzw encoding.
Activity
radarhere commentedon Jul 28, 2018
As a minor point, you say that only when you downgrade does tiff_lzw_decoder appear, but it is listed in the code output above?
Investigating, I find tiff_lzw_decoder was removed in #2899.
Are you able to upload an image that you're experiencing this problem with?
YubinXie commentedon Jul 28, 2018
I did not mention the PIL version in my question, it is 4.2.1. The point of that codes is to show 'how I identify library'. But it is true that PIL version above 4.2 does not contain tiff_lzw_decoder, as you found that it was removed.
So this is not a bug, it is function removal. The image I am using is medical data. It can not go public yet. Sorry. But it has nothing special. You can find any tiff image with lzw encoding.
kkopachev commentedon Jul 30, 2018
@YubinXie I suspect you are using tiled tiff image, which currently only supported without compression. #3227 should fix that.
hugovk commentedon Sep 29, 2018
Probably fixed by #3227.