Quantcast
Channel: Question and Answer » gdal
Viewing all articles
Browse latest Browse all 397

Converting large jp2 files using gdal

$
0
0

I have a bunch of jp2 files with size going from 40MB to 1GB and I need to convert them all to a .tif format. When using gdal_translate for the small files (having the jasper driver to support jp2 files), this works. But when applying this on files with size about 400MB, I get segmentation errors.

gdal_translate input.jp2 output.tif

In another attempt I’ve used opj_decompress (from the JP2OpenJPEG library) to convert jp2 to tif files, but again resulted in an error.

opj_decompress -i input.jp2 -o output.tif

Is there a way to handle large jp2 files with gdal (or another library) to convert them to .tif?


Viewing all articles
Browse latest Browse all 397

Trending Articles