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
If BLOCK_OFFSET_0_0 is missing / None, the cast to int will raise an exception and the error string will not be appended.
Later, on line 472:
ifdata_offsets[-1] <ifd_offsets[-1]:
The value of data_offsets[-1] may be None. If it is in fact None, a TypeError will be raised.
I don't currently understand the TIFF file format well enough to understand how to handle the missing offset correctly so I don't want to open a PR with a potentially wrong fix, but I'd be glad to get a discussion started on what to do here.
Thanks!
The text was updated successfully, but these errors were encountered:
Lines 456-461 of rio_cogeo/cogeo.py read:
If
BLOCK_OFFSET_0_0
is missing /None
, the cast toint
will raise an exception and the error string will not be appended.Later, on line 472:
The value of
data_offsets[-1]
may beNone
. If it is in factNone
, aTypeError
will be raised.I don't currently understand the TIFF file format well enough to understand how to handle the missing offset correctly so I don't want to open a PR with a potentially wrong fix, but I'd be glad to get a discussion started on what to do here.
Thanks!
The text was updated successfully, but these errors were encountered: