Opened 12 years ago

Closed 12 years ago

Last modified 11 years ago

#4733 closed defect (fixed)

GTiff: Use EXTRASAMPLE_UNASSALPHA by default (behaviour change w.r.t. previous GDAL versions)

Reported by: Even Rouault Owned by: warmerdam
Priority: normal Milestone: 1.10.0
Component: GDAL_Raster Version: unspecified
Severity: normal Keywords: gtiff alpha
Cc:

Description

This was discussed in this email http://lists.osgeo.org/pipermail/gdal-dev/2012-May/032968.html and the subsequent thread.

The new behaviour is the following : when before, EXTRASAMPLE_ASSALPHA (=premultiplied) was used, we will now write EXTRASAMPLE_UNASSALPHA (=non-premultiplied), which better reflects the expected behaviour of writting applications.

This can however be altered by setting the ALPHA creation option to PREMULTIPLIED.

The ALPHA creation option now accepts :

  • YES : EXTRASAMPLE_UNASSALPHA (was EXTRASAMPLE_ASSALPHA in GDAL < 2.0)
  • PREMULTIPLIED: EXTRASAMPLE_ASSALPHA
  • NON-PREMULTIPLIED: EXTRASAMPLE_UNASSALPHA
  • UNSPECIFIED or NO : EXTRASAMPLE_UNSPECIFIED

This is only a change in writting mode. There is no change in reading mode (and in particular, there is no special processing of premultiplied)

Change History (4)

comment:1 by Even Rouault, 12 years ago

r24653 /trunk/gdal/frmts/gtiff/geotiff.cpp: GTiff: Use EXTRASAMPLE_UNASSALPHA by default (behaviour change w.r.t. previous GDAL versions) (#4733)

r24654 /trunk/autotest/gcore/data/ (3 files): Update test images to use EXTRASAMPLE_UNASSALPHA (#4733)

comment:2 by Even Rouault, 12 years ago

r24655 /trunk/autotest/gcore/data/stefan_full_greyalpha.tif: Update test images to use EXTRASAMPLE_UNASSALPHA (#4733)

comment:3 by Even Rouault, 12 years ago

Resolution: fixed
Status: newclosed

Closing.

comment:4 by Even Rouault, 11 years ago

r25411 /trunk/gdal/frmts/gtiff/frmt_gtiff.html: "GTiff: Document new accepted values for the ALPHA creation option (should have gone with r24653, #4733)"

Note: See TracTickets for help on using tickets.