Opened 5 years ago

Closed 5 years ago

Last modified 5 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 Changed 5 years ago by Even Rouault

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 Changed 5 years ago by Even Rouault

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.