Opened 2 years ago

Closed 2 years ago

Last modified 23 months 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
Cc:

Description

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 2 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 23 months 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.