Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#6272 closed enhancement (fixed)

GeoTIFF driver should automatically set PHOTOMETRIC=RGB

Reported by: Even Rouault Owned by: Even Rouault
Priority: normal Milestone: 2.1.0
Component: GDAL_Raster Version: unspecified
Severity: normal Keywords: gtiff


Currently the GeoTIFF drivers assigns PHOTOMETRIC=RGB only for 3 bands (or 4 bands with ALPHA=YES) dataset at creation, and when datatype=Byte. For datasets with more bands, even if one manually sets the color interpretation of bands 1,2,3 to Red,Green,Blue, PHOTOMETRIC=RGB isn't set.

Change History (2)

comment:1 by Even Rouault, 8 years ago

Milestone: 2.1.0
Resolution: fixed
Status: newclosed

trunk r32275 "GTiff: automatically set PHOTOMETRIC=RGB if manually assigning color interpretation Red,Green,Blue to band 1,2,3 before directory crystalization (#6272)"

comment:2 by Even Rouault, 8 years ago

trunk r32794 "GTiff: follow-up fix for #6272. We produced a wrong number of ExtraSamples when implicitly turning on Photometric=RGB (#6272)"

Note: See TracTickets for help on using tickets.