I have two 2d array of integers. Basically these integers are pixel values of a FITS image. I would like apply leightweight lossless compression techniques like null suppression (SIMD-BP128) etc. on the FITS file.

I want to know what are the libraries available in C/C++, which I can use to apply these compression techniques.

1 Answer 1


The company I work for has the LEADTOOLS C/C++ imaging library that supports compressing images in different formats, including more than one type of lossless compression. The library supports loading and saving FITS images. You can use it to load the uncompressed FITS image, then save it into a different format that uses lossless compression such as PNG, TIFF/LZW or even lossless JPEG (which is a valid but not very common format, since the common JPEG is lossy).

If you would like to try it, there’s a free evaluation on this page.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.