Image transformation, compression, and decompression codecs
Project description
Imagecodecs is a Python library that provides block-oriented, in-memory buffer transformation, compression, and decompression functions for use in the tifffile, czifile, and other scientific imaging modules.
Decode and/or encode functions are currently implemented for Zlib DEFLATE, ZStandard, Blosc, LZMA, BZ2, LZ4, LZW, LZF, PNG, WebP, JPEG 8-bit, JPEG 12-bit, JPEG SOF3, JPEG LS, JPEG 2000, JPEG XR, PackBits, Packed Integers, Delta, XOR Delta, Floating Point Predictor, and Bitorder reversal.
- Author:
- Organization:
Laboratory for Fluorescence Dynamics. University of California, Irvine
- Version:
2018.12.1
Requirements
libjpeg-turbo 2.0.1 (8 and 12-bit)
A Python distutils compatible C compiler
Notes
Imagecodecs is currently developed, built, and tested on Windows only.
The API is not stable yet and might change between revisions.
Works on little-endian platforms only.
Python 2.7 and 3.4 are deprecated.
Refer to the imagecodecs/licenses folder for 3rd party library licenses.
This software is based in part on the work of the Independent JPEG Group.
This software includes a modified version of jpg_0XC3.cpp.
Other Python packages providing imaging or compression codecs:
Revisions
- 2018.12.1
Add J2K encoder (WIP). Use ZStd content size 1 MB if it cannot be determined. Use logging.warning instead of warnings.warn or print.
- 2018.11.8
Pass 1323 tests. Decode LSB style LZW. Fix last byte not written by LZW decoder (bug fix). Permit unknown colorspaces in JPEG codecs (e.g. CFA used in TIFF).
- 2018.10.30
Add JPEG 8-bit and 12-bit encoders. Improve color space handling in JPEG codecs.
- 2018.10.28
Rename jpeg0xc3 to jpegsof3. Add JPEG LS codec via libcharls. Fix missing alpha values in jxr_decode. Fix decoding JPEG SOF3 with multiple DHTs.
- 2018.10.22
Add Blosc codecs via libblosc.
- 2018.10.21
Builds on Ubuntu 18.04 WSL. Include liblzf in srcdist. Do not require CreateDecoderFromBytes patch to jxrlib.
- 2018.10.18
Improve jpeg_decode wrapper.
- 2018.10.17
Add JPEG SOF3 decoder based on jpg_0XC3.cpp.
- 2018.10.10
Add PNG codecs via libpng. Add option to specify output colorspace in JPEG decoder. Fix Delta codec for floating point numbers. Fix XOR Delta codecs.
- 2018.9.30
Add LZF codecs via liblzf.
- 2018.9.22
Add WebP codecs via libwebp.
- 2018.8.29
Pass 396 tests. Add PackBits encoder.
- 2018.8.22
Add link library version information. Add option to specify size of LZW buffer. Add JPEG 2000 decoder via openjpeg. Add XOR Delta codec.
- 2018.8.16
Link to libjpeg-turbo. Support Python 2.7 and Visual Studio 2008.
- 2018.8.10
Initial alpha release. Add LZW, PackBits, PackInts and FloatPred decoders from tifffile.c module. Add JPEG and JPEG XR decoders from czifile.pyx module.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for imagecodecs-2018.12.1-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30c777c7333d08263893c265493aed16c2002d791e5907d6a8fa47feb44c1116 |
|
MD5 | 4bd77f5d63dd517d21e9d4eedb784bbe |
|
BLAKE2b-256 | dda41f276f1cb9d3cade208bece43739ea1de332855e44c107a44ac4a8b6a177 |
Hashes for imagecodecs-2018.12.1-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cee3edba01744788a349f05d79333017c12634dbf387f41c5e546d1f5d5fe194 |
|
MD5 | d1e6b46b2b726cc8ec3a0d2390c9c63a |
|
BLAKE2b-256 | f2daa676e59020de39ec44789c0183ea6a404b2680aff5be315c4823ebe90c3b |
Hashes for imagecodecs-2018.12.1-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ba0d61f8d2f6f5c2e97f86ac4ac2e50f097cd25b3a5bdbf8dffc5d38760844e |
|
MD5 | b324d75f2dd68cb4470761a34ca2f517 |
|
BLAKE2b-256 | cd0c90fbe0e3e9ad1092017aad58a258b9ee8c0d33e47b7c06c54a66cf2bc240 |
Hashes for imagecodecs-2018.12.1-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2fe6ddc5c373d46dca1aa32031ab62cbefa4aeef8eade75ca3a028879c996f19 |
|
MD5 | d0a996eb92c3673bf97ef294731cf1d6 |
|
BLAKE2b-256 | 2c2cffc8be51ff1c3b41963019025bdca9b03094f8ac9e4ba798674b417339a7 |
Hashes for imagecodecs-2018.12.1-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 287522aa92c413605eaa980efdc6588d8305f04fb5a37912c77f77e962cbe48e |
|
MD5 | ab83363948d80eb5e9f375e753ec1ea0 |
|
BLAKE2b-256 | e73c47cc203e8825f4bde1ac6e3b9917ccc62c76502d19aa3d90bc62d248b4d6 |
Hashes for imagecodecs-2018.12.1-cp35-cp35m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5bf7631c8423a842f689dbbfb9b8a703fb389ec817318fb46321acae69db5e53 |
|
MD5 | 44260d0566b37200338f86a5ef8fcbf6 |
|
BLAKE2b-256 | d3769a83740d94615fc41aa122c7a084b4a9de05c4fcf3acfa1460affa888f97 |
Hashes for imagecodecs-2018.12.1-cp34-cp34m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d9928918d540ba5fe60c66702047b2a6bfcd2eda74a36d7922e11edec468df1 |
|
MD5 | 73addb288d5b4d6806bf7b31aa6d9aa9 |
|
BLAKE2b-256 | b54b60ffd90cbec78bb0fd37b3fe12fb7bfaa338df47fbb86ea157a9bbef5a6d |
Hashes for imagecodecs-2018.12.1-cp34-cp34m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cecf799f4aa4eb1777fd9a5324d875e14a85594191b84cb0a80d0a874dcc5cae |
|
MD5 | 82dc17743b74e3ce1b9671325474281c |
|
BLAKE2b-256 | 17e40a3d99f01f741bba94c1b490a5779b4f5fd7eea3ca1f3b254ba72c60a81e |
Hashes for imagecodecs-2018.12.1-cp27-cp27m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a36a07924750c1874108d264f3fa0fd7631fef5462742641002b409cb5c1c129 |
|
MD5 | ae24baef2c2a03e7e1e73adcc97fbec8 |
|
BLAKE2b-256 | 05ea94bd7673cb59371375c6f471ede89a261d8e6dbb4e00150fb09a32c98165 |
Hashes for imagecodecs-2018.12.1-cp27-cp27m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f11f20e621fc3c0c58e5f1150fcbb11045814a67ac99eb9c86baf10173bf3077 |
|
MD5 | a95035c78997a55c00fe2efaafd9016a |
|
BLAKE2b-256 | 60e18d306f80da51d5ffb5b7e57f500f8e4c36109ef6f7479b628587f2adea9e |