Install libopenjp2-tools by entering the following commands in the terminal:
sudo apt update sudo apt install libopenjp2-tools
command-line tools using the JPEG 2000 library
This package provides with command-line tools allowing for conversions between several formats and also provides tools for encoding and decoding motion-jpeg2000 video formats: . - opj_decompress: decodes j2k, jp2, and jpt files to pgm, ppm, pnm, pgx, and bmp. - opj_compress: encodes pnm, pgm, pgx, bmp, and ppm files to j2k, and jp2. - opj_dump: dump information contains in j2k and jp2. - index_create: create jp2 with JPIP index file from a j2k file. - frames_to_mj2: convert YUV video streams to mj2 format. - mj2_to_frames: convert mj2 video streams to YUV format. - wrap_j2k_in_mj2: wrap j2k codestreams into mj2 format. - extract-j2k-from_mj2: extract j2k codestreams from the mj2 format.