[gdal-dev] Converting to J2K

Smart, Gary Gary.Smart at goodrich.com
Tue Aug 18 11:14:54 EDT 2009


I have tried just about all the standard J2K extensions - none appear to
work.

 

This is the output from...

 

gdal_translate -of JPEG2000 image.ntf image.jp2

 

Input file size is 4008, 2672

0...10...20...30...40...50...60...70...80...90...100 - done.

ERROR 4: `image.jp2' not recognised as a supported file format.

 

The 0..10... bit happens absurdly quickly (as if it does nothing useful)

 

The ERROR is (I think) perhaps generated by an automatic gdalinfo
directly after the translate.

Certainly, a gdalinfo on the created file returns an almost identical
error.

 

I can convert the ntf file into a geotiff OK.  But then, if I try and
convert the geotiff to jp2 - it fails - giving exactly the same
symptoms.  Is there some sort of JPEG2000 library I have to specifically
load or something?

 

________________________________

From: gdal-dev-bounces at lists.osgeo.org
[mailto:gdal-dev-bounces at lists.osgeo.org] On Behalf Of Greg Coats
Sent: 18 August 2009 15:44
To: Smart, Gary
Cc: gdal-dev at lists.osgeo.org
Subject: Re: [gdal-dev] Converting to J2K

 

$ gdal_translate --version

GDAL 1.6.2, released 2009/07/31

$ gdal_translate -of JPEG2000 18stj940125.tif 18stj940125.jp2

Input file size is 5000, 5000

0...10...20...30...40...50...60...70...80...90...100 - done.

 

FYI The convention for JPEG2000 image files is to use the extension
.jp2.

Greg

 

On Aug 18, 2009, at 4:13 AM, Smart, Gary wrote:





I am trying 'gdal_translate  -of JPEG2000  thingy.ntf  thingy.j2k' but
GDAL complains that it doesn't understand the format thingy.j2k

I think its getting the arguments confused.  What am I doing wrong?

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20090818/16bd4793/attachment.html


More information about the gdal-dev mailing list