Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
x/image/tiff: no support for cJPEG or cJPEGOld #23115
What did you do?
tried to decode a jpeg compressed tiff or a canon raw (weird tiff with jpeg data)
What did you expect to see?
the image to be decoded correctly without errors.
What did you see instead?
with a cr2:
I added some code to x/image/tiff/reader.go that allows the module to correctly load cr2 files:
however decoding cJPEG like this causes this error:
I would create a pull request for the cJPEGOld code, however I have no "old" jpeg formatted tiffs to test it with other than cr2s.