Opened 22 years ago

Last modified 21 years ago

#225 closed defect (invalid)

gdal_translate jpeg2000 to tiff is greyscale

Reported by: asimpson@… Owned by: dron
Priority: high Milestone:
Component: default Version: unspecified
Severity: normal Keywords:
Cc:

Description

Whenever I convert a jp2 file to tiff it is greyscale instead of RGB.
What options should I be using?

Attachments (1)

test.jp2 (532.0 KB ) - added by asimpson@… 21 years ago.
JPEG 2000 file for testing

Download all attachments as: .zip

Change History (6)

comment:1 by asimpson@…, 22 years ago

Usage: gdal_translate [--version]
       [-ot {Byte/Int16/UInt16/UInt32/Int32/Float32/Float64/
             CInt16/CInt32/CFloat32/CFloat64}] [-not_strict]
       [-of format] [-b band] [-outsize xsize[%] ysize[%]]
       [-scale [src_min src_max [dst_min dst_max]]]
       [-srcwin xoff yoff xsize ysize]
       [-projwin ulx uly lrx lry] [-co "NAME=VALUE"]*
       src_dataset dst_dataset

GDAL 1.1.7, released 2002/04/16

The following format drivers are configured and support output:
  VRT: Virtual Raster
  GTiff: GeoTIFF
  HFA: Erdas Imagine Images (.img)
  ELAS: ELAS
  AAIGrid: Arc/Info ASCII Grid
  DTED: DTED Elevation Raster
  PNG: Portable Network Graphics
  JPEG: JPEG JFIF
  MEM: In Memory Raster
  GIF: Graphics Interchange Format (.gif)
  XPM: X11 PixMap Format
  JPEG2000: JPEG-2000 part 1 (ISO/IEC 15444-1)
  PNM: Portable Pixmap Format (netpbm)
  PAux: PCI .aux Labelled
  MFF: Atlantis MFF Raster
  MFF2: Atlantis MFF2 (HKV) Raster
  FIT: FIT Image

comment:2 by warmerdam, 21 years ago

Andrey,

Can you get the JasPer driver working properly for multi band images, assuming
that is the problem?  

comment:3 by dron, 21 years ago

Hello Drew,

Could you make available a sample JP2 file for me? You can attach file here at
Bugzilla page.

by asimpson@…, 21 years ago

Attachment: test.jp2 added

JPEG 2000 file for testing

comment:4 by dron, 21 years ago

Drew,

I can't reproduce your problem. I think you have outdated GDAL version with
incomplete JPEG2000 support. Please, try the latest version from the CVS tree.

                               Andrey

comment:5 by dron, 21 years ago

I think this one should be closed.
Note: See TracTickets for help on using tickets.