Opened 6 years ago

Closed 6 years ago

Last modified 5 years ago

#5616 closed defect (fixed)

Null count for ICC Profile error opening tiff file.

Reported by: timaranz Owned by: warmerdam
Priority: normal Milestone: 2.0.0
Component: default Version: 1.11.0
Severity: normal Keywords: python ICC
Cc:

Description (last modified by timaranz)

Hi guys,

Attached is a .tif file that won't open with python GDAL 1.11.

osgeo.gdal.Open(r"F:\Temp\0820.tif", GA_ReadOnly) ERROR 1: _TIFFVSetField:F:\Temp\0820.tif: Null count for "ICC Profile" (type 7, writecount -3, passcount 1)

The file opens in other windows applications, although GIMP also reports a (recoverable) error. Is this a bad file or a bug?

Could not attach so here is a download link.

Download Link - Expires on 2014-09-15 00:00 GMT+1200 0820.tif (2.5 MB) https://justattach-nz.leapfrog3d.com/download.php?A=kci2qtD05YR650D4M7ZMa-ZKdX7uY.iU5B918TyVBhI

Change History (4)

comment:1 Changed 6 years ago by timaranz

Description: modified (diff)

comment:2 Changed 6 years ago by Even Rouault

Milestone: 2.0
Resolution: fixed
Status: newclosed

Yes, the file has likely a defect in the ICC Profile tag. This is something that is however non critical so GDAL behaviour was a bit over reaction.

trunk r27589 "GTiff: to make Python bindings happy, avoid emitting CE_Failure errors due to libtiff errors when we still manage to open the file (#5616)"

comment:3 Changed 6 years ago by Even Rouault

trunk r27596 "Fix Win32 compilation". The commit comment wrongly references ticket 5619.

comment:4 Changed 5 years ago by Even Rouault

Milestone: 2.02.0.0

Milestone renamed

Note: See TracTickets for help on using tickets.