According to http://www.gdal.org/formats_list.html , GDAL supports
four flavors of JPEG2000, four different implementations of wavelet
compression, based on JasPer, Kakadu, ECW, and MrSID. Two of these
four are available to me
gdal_translate | grep 2000
JP2KAK: JPEG-2000 (based on Kakadu)
JPEG2000: JPEG-2000 part 1 (ISO/IEC 15444-1)
Which of these four are available to you?
When creating and writing a JPEG2000 file, use -of to specify which of
the available flavors you want GDAL to use.
/usr/bin/time gdal_translate -of JPEG2000 18stj940125.tif
18stj940125_gdalV162_of_JPEG200.jp2
Input file size is 5000, 5000
0...10...20...30...40...50...60...70...80...90...100 - done.
24.27 real 20.91 user 2.47 sys
/usr/bin/time gdal_translate -of JP2KAK 18stj940125.tif
18stj940125_gdalV162_of_JP2KAK.jp2
Input file size is 5000, 5000
0...10...20...30...40...50...60...70...80...90...100 - done.
15.75 real 15.06 user 0.30 sys
Greg
On Aug 18, 2009, at 11:14 AM, Smart, Gary wrote:
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: [email protected] [mailto:[email protected]
] On Behalf Of Greg Coats
Sent: 18 August 2009 15:44
To: Smart, Gary
Cc: [email protected]
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?
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev