Opened 15 years ago

Closed 15 years ago

#3054 closed defect (fixed)

GDALaddo does not accetp NBITS 12 for JPEG in TIFF

Reported by: pbe Owned by: warmerdam
Priority: normal Milestone:
Component: GDAL_Raster Version: svn-trunk
Severity: normal Keywords: GDALaddo
Cc:

Description

GDALaddo in FWTools2.4.2 does not accept the NBITS 12 as a parameter. Or rather it appears to ignore it as the .ovr ends up larger then the tif file and gdalInfo gives: Band 1 Block=128x128 Type=UInt16, ColorInterp=Gray The commend used was: "c:\Program Files\FWTools2.4.2\bin\gdaladdo.exe" -r average -ro --config USE_RRD NO --config JPEG_QUALITY 85 --config TILED YES --config NBITS 12 test12bitJPEG.tif 2 4 8 16 32 64

Change History (1)

comment:1 by warmerdam, 15 years ago

Component: defaultGDAL_Raster
Resolution: fixed
Status: newclosed
Version: unspecifiedsvn-trunk

Peter,

Support for utilizing NBITS from the IMAGE_STRUCTURE metadata of the base level image when generating tiff overviews was added in r17358 (yesterday). With this change it should be possible to produce jpeg compressed 12bit overviews though you will also need --config COMPRESS_OVERVIEW JPEG and --config PHOTOMETRIC_OVERVIEW YCBCR.

Note: See TracTickets for help on using tickets.