openjpeg icon indicating copy to clipboard operation
openjpeg copied to clipboard

creation failure with tileparts=resolution and precincts value

Open rouault opened this issue 2 years ago • 0 comments

Created from https://github.com/OSGeo/gdal/issues/7713

Given la.tif in https://drive.google.com/file/d/1w2w7Q_zaSjYu4AlKCQ0NVuM4E1QDAWjt/view?usp=share_link

$ gdal_translate la.tif tmp.tif
$ opj_compress -I -t 1024,1024 -n 4 -TP R -i tmp.tif -o output.j2k -c  "[512,512],[256,512],[256,512],[128,512],[64,512],[32,512],[16,512],[8,512],[4,512],[2,512]"

TIFFReadDirectory: Warning, Unknown field with tag 33550 (0x830e) encountered.
TIFFReadDirectory: Warning, Unknown field with tag 33922 (0x8482) encountered.
TIFFReadDirectory: Warning, Unknown field with tag 34735 (0x87af) encountered.
TIFFReadDirectory: Warning, Unknown field with tag 34737 (0x87b1) encountered.
[INFO] tile number 1 / 16
[ERROR] opj_t2_encode_packet(): accessing precno=1 >= 1
[ERROR] Cannot encode tile
failed to encode image: opj_encode
failed to encode image: opj_end_compress
failed to encode image

rouault avatar May 08 '23 21:05 rouault