Opened 16 years ago

Last modified 16 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:


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@… 16 years ago.
JPEG 2000 file for testing

Download all attachments as: .zip

Change History (6)

comment:1 Changed 16 years ago by asimpson@…

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)
  AAIGrid: Arc/Info ASCII Grid
  DTED: DTED Elevation Raster
  PNG: Portable Network Graphics
  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 Changed 16 years ago by warmerdam


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

comment:3 Changed 16 years ago by dron

Hello Drew,

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

Changed 16 years ago by asimpson@…

Attachment: test.jp2 added

JPEG 2000 file for testing

comment:4 Changed 16 years ago by dron


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.


comment:5 Changed 16 years ago by dron

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