Last active
November 1, 2018 19:10
-
-
Save comstock/b8abed5b0e75a4b2f531f0489231ccbb to your computer and use it in GitHub Desktop.
OpenJPEG, JPEG200 lossy compression encoding example with quality set to 42 decibels
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| opj_compress -i <input.tif> -o <output.jp2> -p RLCP -t 1024,1024 -EPH -SOP -OutFor jp2 -I -q 42 |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
OpenJPEG Notes for encoding JPEG2000 files
Encoding
opj_compress-i <inputFile.ext>-p RLCP(progression order)-t 1024,1024(tile size)-EPH(End of Packet Header marker)-SOP(Start of Packet)-ImgDir <image dir>(cannot be used with -i switch)-OutFor <ext>(extension for output files)-o <outputFile.ext>-I(specifies lossy encoding)-q <quality in dB>,<quality in dB>,...-r <compression ratio>,<compression ratio>,...Lossless example
opj_compress -i D9_NS.tif -o D9_NS.jp2 -p RLCP -t 1024,1024 -EPH -SOP -OutFor jp2Lossy example
opj_compress -i D9_NS.tif -o D9_NS.jp2 -p RLCP -t 1024,1024 -EPH -SOP -OutFor jp2 -I -q 42opj_compress -i D9_NS.tif -o D9_NS.jp2 -p RLCP -t 1024,1024 -EPH -SOP -OutFor jp2 -r 10decompress: converting JP2 files to other formats
opj_decompress -i infile.j2k -o outfile.pngopj_decompress -ImgDir images/ -OutFor tif