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.2
Requirements
This release has been tested with the following requirements and dependencies (other versions may work):
libjpeg-turbo 2.0.1 (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.2
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
NoneRelease 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.2-pp370-pp370-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ddbc0d6610f4558e2692aafcaba8455a2caa048ecfb417fd3cd7455926e03d08 |
|
MD5 | 6d80926b7bfd748a83db058e316ff466 |
|
BLAKE2b-256 | 65c7d5eb9bf78f645e98ea9b5fde013da43551beb2cfaa800c24047b10b4b514 |
Hashes for imagecodecs-2019.2.2-pp270-pypy_41-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3d378770afd0f3d4c93c335ba4f57e82f22c26ea5c12209c0d6db065a6bdec2 |
|
MD5 | b7386711b8be2beef96a6b16fa3469f8 |
|
BLAKE2b-256 | beb00d9990670ddc9f847c7a37a979df137e754077b15fee63b5de84f37ff0ae |
Hashes for imagecodecs-2019.2.2-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d9ea8a13a92591979a472d383deda18bb1a77b965696a56cad39eafe556a24c |
|
MD5 | 972f922a8b8f50eb4695c4e6bfebc99a |
|
BLAKE2b-256 | c69e732531a3a74488f84fc42998aea01d510e1beffae1978ac0111c308ff64e |
Hashes for imagecodecs-2019.2.2-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 672b1dadf384a2d88fe82290c0c9834ddfdb6a6fe481dde7a739484661c09d41 |
|
MD5 | 53711db732c015ff45c7fc4767c4f43e |
|
BLAKE2b-256 | 5fa2677c32bd4922560225f30e2565f74ada27aeddf74eaacd8c6e49c96f3b6c |
Hashes for imagecodecs-2019.2.2-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bfa002c0719b74e85aae946a5fde02621e3bfa02b4c024826e778664c277d70e |
|
MD5 | 12ec4598b3b41dbc499e89bbfbdd6842 |
|
BLAKE2b-256 | dfbf87b4c09c5f29d3932b4b23895803a7cf0d9118156a05fca4c7448c529b2b |
Hashes for imagecodecs-2019.2.2-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e839ebdd475571e56cce5afa510b9d81c0f455b4a35838e9c48f5a5500a7f99 |
|
MD5 | 114aca53704a9dafafd1b6a337195dfa |
|
BLAKE2b-256 | 9673308cac2b30783e051f3c2adcac4116229aa638516f4d1bb020d0289a0b1f |
Hashes for imagecodecs-2019.2.2-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e08747ad67f7d619ed88e72104dcb9685b9fbc9d89eadf6d41a8fc822c9ca6bd |
|
MD5 | 66ec780a2398448e613cc8c44de32494 |
|
BLAKE2b-256 | 303fc4e1461877913772f30360c5db1109c12a0997b75be133d3c48e495a810b |
Hashes for imagecodecs-2019.2.2-cp35-cp35m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 955865f9842985a988fc4a67ad42310f7fa04ba14e6fdc67121fb27c5196eaf2 |
|
MD5 | c2756cb47c0d867558534360aa8a5063 |
|
BLAKE2b-256 | c79ece59a2dc94f7199ebf4e790b153a043155cf90cc7108373159aa025a2b0a |
Hashes for imagecodecs-2019.2.2-cp34-cp34m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c64b71390d376453ff086565202d3808e01801b3702eaea470936cd6af09877 |
|
MD5 | 856f30c1a23d28a0c596a6c16c963fe6 |
|
BLAKE2b-256 | 8a0c5d7a2a5c71eec6624350cd3df7f0b5a21cb22e27ac1234d11c81f3cbf0b4 |
Hashes for imagecodecs-2019.2.2-cp34-cp34m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5b1c1313cc77efb215f875de1b2224602b15d25b7a5bcfa7375e23bdf14d17d |
|
MD5 | 00f726b3bf96d21c39e0b48bea2d6b52 |
|
BLAKE2b-256 | 8f522266d1a92870c616d3cc9acbe0fe62da0a3700645649155c4892445fb410 |
Hashes for imagecodecs-2019.2.2-cp27-cp27m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 814d2b45d85ff7142e96942e1c8bc08b3a4d2caed27da724b5eb8674f3ae9692 |
|
MD5 | 9f99819f58bd2736edd675c4b25f1e52 |
|
BLAKE2b-256 | 65f0298f6b770ccc3fa056c87dcf627259e7da48bfb324deb9aa4bd5e884eb26 |
Hashes for imagecodecs-2019.2.2-cp27-cp27m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 566a8515cf36a445bb37b1aa01f499bead8a3633a24aca8dd2b4c5968993e53a |
|
MD5 | e634595da5289f49c4dccd0a8bca9611 |
|
BLAKE2b-256 | dab9331028430cd03dbd8b0f4e4b515395d892f62eb1127e6a9e4cbbaad599ba |