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

Experimental fix TIFF files reading with one big stripe #122

Closed
wants to merge 1 commit into from

Conversation

drons
Copy link
Contributor

@drons drons commented Apr 27, 2016

This is continuation of pull request #90
I'm not 100% feel certain in this changeset, but it fix problem with one stripe TIFF files.

@rouault
Copy link
Member

rouault commented Apr 27, 2016

Could you post the output of tiffdump on the tiff file you're trying to make recognized ?

@drons
Copy link
Contributor Author

drons commented Apr 27, 2016

1.tif:
Magic: 0x4949 <little-endian> Version: 0x2a <ClassicTIFF>
Directory 0: offset 88 (0x58) next 0 (0)
ImageWidth (256) LONG (4) 1<3104>
ImageLength (257) LONG (4) 1<2430>
BitsPerSample (258) SHORT (3) 1<16>
Compression (259) SHORT (3) 1<1>
Photometric (262) SHORT (3) 1<1>
PlanarConfig (284) SHORT (3) 1<1>
StripOffsets (273) LONG (4) 1<202>
MinSampleValue (280) SHORT (3) 1<0>
MaxSampleValue (281) SHORT (3) 1<1023>

@drons
Copy link
Contributor Author

drons commented Apr 27, 2016

Yesterday i'm run git bisect with 'gdalinfo my_file.tif' and found first broken commit.
git 1f0d59a
svn: trunk@28198

@rouault
Copy link
Member

rouault commented Apr 27, 2016

Should be fixed per https://trac.osgeo.org/gdal/ticket/6490 . My fix is a bit more restrictive, but you spotted the right place.

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 this pull request may close these issues.

2 participants