Package: libopenjp2-tools Version: 2.1.0-2 $ opj_compress 2>&1 | grep Example Example: opj_compress -i image.j2k -o image.pgm This is wrong way round. The line should read: Example: opj_compress -i image.pgm -o image.j2k -- Jakub Wilk