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, ZFP, NPY, 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
- License:
3-clause BSD
- Version:
2019.2.20
Requirements
This release has been tested with the following requirements and dependencies (other versions may work):
libjpeg-turbo 2.0.2 (8 and 12-bit)
Required for testing:
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, 3.4, and 32-bit are deprecated.
The Microsoft Visual C++ Redistributable Packages are required on Windows.
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 modified versions of dcm2niix’s jpg_0XC3.cpp and openjpeg’s color.c.
To install the requirements for building imagecodecs from source on Debian based Linux distributions, run:
$ sudo apt-get install build-essential python3-dev cython3 python3-setuptools python3-pip python3-wheel python3-numpy libz-dev libblosc-dev liblzma-dev liblz4-dev libzstd-dev libpng-dev libwebp-dev libbz2-dev libopenjp2-7-dev libjpeg62-turbo-dev libjxr-dev liblcms2-dev libtiff-dev
Other Python packages providing imaging or compression codecs:
Revisions
- 2019.2.20
Rebuild with updated dependencies.
- 2019.1.20
Pass 2610 tests. Add more pixel formats to JPEG XR codec. Add JPEG XR encoder.
- 2019.1.14
Add ZFP codecs via zfp library (WIP). Add numpy NPY and NPZ codecs. Fix some static codechecker errors.
- 2019.1.1
Update copyright year. Do not install package if Cython extension fails to build. Fix compiler warnings.
- 2018.12.16
Reallocate LZW buffer on demand. Ignore integer type output arguments for codecs returning images.
- 2018.12.12
Enable decoding of subsampled J2K images via conversion to RGB. Enable decoding of large JPEG using patched libjpeg-turbo. Switch to Cython 0.29, language_level=3.
- 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
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
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-2019.2.20-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42788c08209e9009668556705665d92277603e5814ab35028d6c941895b1a541 |
|
MD5 | 6c8763562880d3ef8ed3182aa8730fdf |
|
BLAKE2b-256 | c05c1281f3f2096cbd6a75ec173cf237385a082a88cc767410934ae2120f1105 |
Hashes for imagecodecs-2019.2.20-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb671e219d4bad5cee5a88ec6964c73db815b5b95446f6451f4b26b2c65a1002 |
|
MD5 | 338e9568e0ff94d4d6fe9b51fade8a7e |
|
BLAKE2b-256 | a6bab64e5364857f6535e008224ae265bd50a00b55edf4b32fcc2e93bfcf1a39 |
Hashes for imagecodecs-2019.2.20-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0aca212586fbd41b67d0e7997f640571e38eb4577432fe81c3d86cf2210431ab |
|
MD5 | 45a589ee9e1d24dc91667bc5c2605879 |
|
BLAKE2b-256 | ceb8b1f4e5918c6f34e257e9c8eeee02405b574497abac4f4cfaba4b8df51d38 |
Hashes for imagecodecs-2019.2.20-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a817eaaa52e98d11b2894ea9abd74cb1b84ed37d1ba0e6c3526de4a2b52f2c23 |
|
MD5 | 1ec7288d9e5a3dc213b961a10dbd4e9e |
|
BLAKE2b-256 | b75b290516f8cd98a7861507b39ecc9515e3fb467e54ccb06f246f9f74bf3890 |
Hashes for imagecodecs-2019.2.20-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e945e009bbb532db96c7291998a1f34e47054de6c63a22441e96215117a9a289 |
|
MD5 | 0a27f05b9cbbe99ef1e5468cd8351837 |
|
BLAKE2b-256 | 35535600d1e5ebcb3f1f1dfdd50357ad2ba1c61e7c98fa4b4aaa7818d4644058 |
Hashes for imagecodecs-2019.2.20-cp35-cp35m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67ccd482f0dcbda2967934bca23a13d0da507481f65cd675dcdc91edfcf11e07 |
|
MD5 | 144e099bd0d3f55fda55f87bb3202164 |
|
BLAKE2b-256 | ed9a5d725be288867059eefa8eb101fe5edf4a8878cbceb62f278bcf3022bf54 |
Hashes for imagecodecs-2019.2.20-cp27-cp27m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7569f1118213194b15a1661eb238a69dd39fbd77314e24389d16c36a1804bb08 |
|
MD5 | 1ec15114c2433c35481329ad22f06e84 |
|
BLAKE2b-256 | 51d8c4a12884115c2c3b9444c82a18bb3191d45fcf6a63050d1092ba09360e0c |
Hashes for imagecodecs-2019.2.20-cp27-cp27m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0cb93d937394c3cd39699553238a5ecee2008343bc31ed2073bdcc29482ae4ef |
|
MD5 | cf99d37abe710dd2a47214827ac5f3aa |
|
BLAKE2b-256 | 36e4d01b44a61b9da11478d24d7ae6b2aae539ae9286183a2185d940cc89a1db |