Skip to content

Decode fails for JP2s with ICC profile #981

Closed
@bitsgalore

Description

I tried to decompress the following JP2 to TIF using the latest (2.2.0) OpenJPEG release:

https://github.com/openpreserve/format-corpus/raw/master/jp2k-test/icc/balloon_eciRGBv2_aware.jp2

Command:

opj_decompress -i balloon_eciRGBv2_aware.jp2 -o balloon_eciRGBv2_aware.tif

This resulted in the following error (no output image was written):

[INFO] Stream reached its end !
/home/johan/openjpeg-v2.2.0-linux-x86_64/bin/opj_decompress: symbol lookup error: /home/johan/openjpeg-v2.2.0-linux-x86_64/bin/opj_decompress: undefined symbol: opj_image_data_alloc

I got the same result with this image:

https://github.com/openpreserve/format-corpus/raw/master/jp2k-test/icc/balloon_eciRGBv2_ps_kduplugin.jp2

Though I'm not 100% sure on this, I suspect the error has something to do with the fact that the JP2 contains an embedded ICC profile. For example, below image (which is similar except that it has no ICC profile) is converted to TIFF without any problem:

https://github.com/openpreserve/format-corpus/raw/master/jp2k-test/resolution/balloon_aware.jp2

(Note: I'm using the Linux binaries under Linux Mint 18)

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions