-
Notifications
You must be signed in to change notification settings - Fork 18k
x/image/tiff: compressed tiffs are invalid (at least on Mac OS X) #26360
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
Comments
Works for me on linux. Perhaps Mac OS X doesn't support TIFF compression? |
CC @nigeltao |
OS X can definitely support |
I'm wondering if this is related to #24657. The issue was resolved for Gray16 images but I've just realised other types (including RGBA64), will have the same problem. Although this issue affects the decoding functionality there might be a similar problem affecting the encoding part. As background, the problem that I'm referring to appears when the internal tile defined in a tiff does not align evenly with the total size of the image. If not related, I'll open a new issue to fix this one. |
@prl900 did you ever investigate this? I'm hoping to use golang to generate tiffs, but currently cannot due to this issue. |
I think the problem you are experiencing is related with the encodeRGBA64 whereas the problem that I previously commented was related to the decoding functions. Regardless, I've run your code on my mac (OS mojave) and I can open both tiffs (compressed and non-compressed) with Preview. Happy to help to find out what the problem might be. |
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version go1.10.3 darwin/amd64
Does this issue reproduce with the latest release?
I'm on go1.10.
What operating system and processor architecture are you using (
go env
)?What did you do?
Here is a reproduction case.
What did you expect to see?
A valid white tiff.
What did you see instead?
A system error.
The text was updated successfully, but these errors were encountered: