Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save RGB Tiff using LibTiff raises exception #387

Closed
wiredfool opened this issue Oct 21, 2013 · 1 comment · Fixed by #388
Closed

Save RGB Tiff using LibTiff raises exception #387

wiredfool opened this issue Oct 21, 2013 · 1 comment · Fixed by #388

Comments

@wiredfool
Copy link
Member

TiffImagePlugin.py, line 1010:
atts = dict([(k,v) for (k,(v,)) in ifd.items() if k not in blocklist])

fails on BytesPerSample = (8,8,8), since there are too many bytes to unpack.

This wasn't a problem with bilevel g3/4, but is for deflate.

@wiredfool
Copy link
Member Author

Also, test what G4 does with color data. And possibly prevent that compression on anything but a mode 1 image.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant