I don't know how to do that without significant code. 

What you can do, given the right gdal build, is to extract the image and recompress it as JPEG 2000. That would have the advantage of working with just about any NITF compression method, not just C8/M8. Obviously that does involve more CPU and possibly artefacts depending on compression choices. 

Brad

On 26 May 2023 4:57 pm, Tobby Moalem <mtobb...@gmail.com> wrote:
Hi, 
For my understanding the nitf file is used as container, where compressed jpeg2000 can be saved inside the nitf file. 
I wonder if there is a way to use gdal to extract the jpeg2000 part and save it separately (with extension of .j2c or other jpeg2000 extensions) ?

Thanks in advance,
Tobby

_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to