Opened 13 years ago
Closed 13 years ago
#3540 closed defect (fixed)
8 Bit JP2 image returns NBIT=1
Reported by: | gaopeng | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | GDAL_Raster | Version: | 1.6.1 |
Severity: | normal | Keywords: | jp2kak |
Cc: |
Description
Attached is an 8 bit JP2 image with values in 0-255 range. But the metadata item NBITS is set to 1.
Attachments (1)
Change History (6)
by , 13 years ago
Attachment: | customgraphic1.jp2 added |
---|
comment:1 by , 13 years ago
Keywords: | jp2kak added |
---|---|
Owner: | changed from | to
comment:2 by , 13 years ago
Status: | new → assigned |
---|
comment:3 by , 13 years ago
Gao,
I have modified the jp2kak driver in trunk to now actually fetch < 8bit images with their natural precision (r19533). Would you like me to backport this to the 1.6-esri tree?
comment:5 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
I believe this is because one bit files are currently being automatically rescaled (poorly) to 8bit by the strip_decompressor. I'll dig a bit deeper.
Note, Gao has implemented a preliminary fix in 1.6-esri to drop the metadata (r19526).