Skip to content
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

Using JPEG-XR for binary image compression? #31

Open
Sahil-5111998 opened this issue May 7, 2023 · 1 comment
Open

Using JPEG-XR for binary image compression? #31

Sahil-5111998 opened this issue May 7, 2023 · 1 comment

Comments

@Sahil-5111998
Copy link

Hi,

I am using jxrlib for binary image compression, but it gives me a problem.
By binary image, I mean an image by 1bpp (1-bit depth).

I am not using the Java one, but I am using the one written in C++.
For that, I am using the following command:

JXREncApp -i Image3_3.bmp -o output.jxr -c 1

I am asking you a question because I cannot get any help. So if you have any idea about it, please let me know.

@melissalinkert
Copy link
Member

@Sahil-5111998 : as far as I know, JxrEncApp and JxrDecApp will not support 1-bit images at all. These tools do not completely implement the JPEG-XR specification, despite usage instructions that suggest otherwise.

Opening the 1-bit BMP file in Windows Photos should allow you to save as .jxr, and the output file should still be 1-bit. JxrDecApp will not be able to read that though. You might try other applications listed here as well:

https://en.wikipedia.org/wiki/JPEG_XR#Software_support

but note that anything which relies upon jxrlib (e.g. ImageMagick) will have the same problems as using JxrEncApp/JxrDecApp directly.

We're very unlikely to add 1-bit image support here in the foreseeable future, but hopefully that helps a bit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants