-
Notifications
You must be signed in to change notification settings - Fork 466
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OPENJPEG could not encode 1-BIT RGB IMAGE #1469
Comments
@xinglenchi1996, This file is broken: 245480784-66a9495d-8310-46cb-bd2f-379c308e75bb.png
winfried |
TF3_17BIT_000000003168_复杂压缩非倒置.TIF.zip
HERE is the ORIGINAL FILE. And the file ABOVE is only for PREVIEWING |
ORIGINAL COMMAND is like this: "/Users/lixingchen/Downloads/openjpeg-v2.5.0-osx-x86_64/bin/opj_compress" -threads 1 -r 1 -n 7 -TargetBitDepth 1 -i "/Volumes/A028/MAT/37-89-1/NEW/PART-1/METHOD-03/CORE/INTEGER17_TO_32/TF3_17BIT_000000003168_复杂压缩非倒置.TIF" -o "/Volumes/A028/MAT/37-89-1/NEW/PART-1/METHOD-03/CORE/INTEGER17_TO_32/TF3_17BIT_000000003168_复杂压缩非倒置.JP2" [INFO] tile number 1 / 1 |
Expected behavior and actual behavior.
I try to encode a 1-BIT RGB IMAGE. INPUT IMAGE is a 16BIT-IMAGE which only contains 0 and 65535 in each color channel. But the "opj-compress" module throws the following error everytime.
[INFO] tile number 1 / 1
[ERROR] opj_t2_encode_packet(): only 482 bytes remaining in output buffer. 727 needed.
[ERROR] Cannot encode tile
failed to encode image: opj_encode
failed to encode image: opj_end_compress
failed to encode image
Steps to reproduce the problem.
OPENJPEG ENCODE
Operating system
MAC OS 12.0
openjpeg version
2.5.0
The text was updated successfully, but these errors were encountered: