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

Fail to read Tiff file #680

Open
theofrclt opened this issue Sep 12, 2024 · 5 comments
Open

Fail to read Tiff file #680

theofrclt opened this issue Sep 12, 2024 · 5 comments

Comments

@theofrclt
Copy link

When I try to read some .tiff file, this error appear. This error isn't systematic. TiffDecoder can work with some of my files but some tiff files are not supported.

RangeError (length): Invalid value: Not in inclusive range 0..74607: 74608
#0      Uint8List.[] (dart:typed_data-patch/typed_data_patch.dart)
#1      InputBuffer.readUint32 (package:image/src/util/input_buffer.dart:191:22)
#2      InputBuffer.readFloat32 (package:image/src/util/input_buffer.dart:205:43)
#3      TiffImage._decodeTile (package:image/src/formats/tiff/tiff_image.dart:392:35)
#4      TiffImage.decode (package:image/src/formats/tiff/tiff_image.dart:305:9)
#5      TiffDecoder.decodeFrame (package:image/src/formats/tiff_decoder.dart:49:39)
#6      TiffDecoder.decode (package:image/src/formats/tiff_decoder.dart:70:14)
@brendan-duncan
Copy link
Owner

Tiff is a massively flexible format with a ton of configurations. My decoder doesn't support everything. There is also the possibility of bugs in the decoder for the configurations that it does support. If you can provide an image file that's failing, I can investigate it.

@moovida
Copy link

moovida commented Sep 30, 2024

Hi @brendan-duncan , I wrongly duplicated this issue in issue #686
There I attached a tiff, that I am quite sure was readable at some point. Would be great if you could give it a check.
Thanks

@moovida
Copy link

moovida commented Oct 7, 2024

Hi again @brendan-duncan , just as an info, I just figured that before the last version the tiffs did work. Last working version, for the record: 4.1.7

@brendan-duncan
Copy link
Owner

Sorry it's taken a while, the fix is in git. I'll have to find some time to push the pub update.

@moovida
Copy link

moovida commented Oct 8, 2024

Hi @brendan-duncan , thanks a ton, I can confirm that it works properly.

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

No branches or pull requests

3 participants