Skip to content

Commit

Permalink
Release v2022.8.8
Browse files Browse the repository at this point in the history
  • Loading branch information
cgohlke committed Aug 8, 2022
1 parent c845c23 commit 792f7d9
Showing 1 changed file with 40 additions and 10 deletions.
50 changes: 40 additions & 10 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ CMS (color space transformations), and Float24 (24-bit floating point).

:Author: `Christoph Gohlke <https://www.cgohlke.com>`_
:License: BSD 3-Clause
:Version: 2022.7.31
:Version: 2022.8.8
:DOI: 10.5281/zenodo.6915978

Installation
Expand All @@ -41,7 +41,7 @@ Requirements
This release has been tested with the following requirements and dependencies
(other versions may work):

- `CPython 3.8.10, 3.9.13, 3.10.5, 3.11.0b5 <https://www.python.org>`_
- `CPython 3.8.10, 3.9.13, 3.10.6, 3.11.0rc1 <https://www.python.org>`_
(AMD64 platforms only, 32-bit versions are deprecated)
- `Numpy 1.21.5 <https://pypi.org/project/numpy>`_

Expand All @@ -66,10 +66,9 @@ Build requirements:
(`aom 3.4.0 <https://aomedia.googlesource.com/aom>`_,
`dav1d 1.0.0 <https://github.com/videolan/dav1d>`_,
`rav1e 0.5.1 <https://github.com/xiph/rav1e>`_)
- `libdeflate 1.12 <https://github.com/ebiggers/libdeflate>`_
- `libdeflate 1.13 <https://github.com/ebiggers/libdeflate>`_
- `libheif 1.12.0 <https://github.com/strukturag/libheif>`_
(`libde265 1.0.8 <https://github.com/strukturag/libde265>`_)
- `libjpeg 9d <http://libjpeg.sourceforge.net/>`_
- `libjpeg-turbo 2.1.3 <https://github.com/libjpeg-turbo/libjpeg-turbo>`_
- `libjxl 0.6.1 <https://github.com/libjxl/libjxl>`_
- `liblzf 3.6 <http://oldhome.schmorp.de/marc/liblzf.html>`_
Expand All @@ -84,34 +83,40 @@ Build requirements:
- `openjpeg 2.5.0 <https://github.com/uclouvain/openjpeg>`_
- `qoi 75e7f30 <https://github.com/phoboslab/qoi>`_
- `snappy 1.1.9 <https://github.com/google/snappy>`_
- `zfp 0.5.5 <https://github.com/LLNL/zfp>`_
- `zfp 1.0.0 <https://github.com/LLNL/zfp>`_
- `zlib 1.2.12 <https://github.com/madler/zlib>`_
- `zlib-ng 2.0.6 <https://github.com/zlib-ng/zlib-ng>`_
- `zopfli-1.0.3 <https://github.com/google/zopfli>`_
- `zstd 1.5.2 <https://github.com/facebook/zstd>`_

Test requirements:

- `tifffile 2022.7.31 <https://pypi.org/project/tifffile>`_
- `tifffile 2022.8.8 <https://pypi.org/project/tifffile>`_
- `czifile 2019.7.2 <https://pypi.org/project/czifile>`_
- `python-blosc 1.10.6 <https://github.com/Blosc/python-blosc>`_
- `python-blosc2-0.2.0 <https://github.com/Blosc/python-blosc2>`_
- `python-blosc2-0.3.0 <https://github.com/Blosc/python-blosc2>`_
- `python-brotli 1.0.9 <https://github.com/google/brotli/tree/master/python>`_
- `python-lz4 4.0.2 <https://github.com/python-lz4/python-lz4>`_
- `python-lzf 0.2.4 <https://github.com/teepark/python-lzf>`_
- `python-snappy 0.6.1 <https://github.com/andrix/python-snappy>`_
- `python-zstd 1.5.2 <https://github.com/sergey-dryabzhinsky/python-zstd>`_
- `python-zstd 1.5.3 <https://github.com/sergey-dryabzhinsky/python-zstd>`_
- `bitshuffle 0.4.2 <https://github.com/kiyo-masui/bitshuffle>`_
- `numcodecs 0.10.1 <https://github.com/zarr-developers/numcodecs>`_
- `numcodecs 0.10.2 <https://github.com/zarr-developers/numcodecs>`_
- `zarr 2.12.0 <https://github.com/zarr-developers/zarr-python>`_
- `zopflipy 1.7 <https://github.com/hattya/zopflipy>`_

Revisions
---------

2022.8.8

- Pass 6349 tests.
- Drop support for libjpeg.
- Fix encoding JPEG in RGB color space.
- Require ZFP 1.0.

2022.7.31

- Pass 6348 tests.
- Add option to decode WebP as RGBA.
- Add option to specify WebP compression method.
- Use exact lossless WebP encoding.
Expand Down Expand Up @@ -345,6 +350,31 @@ Read the image from the JP2 file as numpy array:
>>> numpy.array_equal(image, array)
True

Create a JPEG 2000 compressed Zarr array:

>>> import zarr
>>> import numcodecs
>>> from imagecodecs.numcodecs import Jpeg2k
>>> numcodecs.register_codec(Jpeg2k)
>>> zarr.zeros(
... (512, 512, 3), chunks=(256, 256, 3), dtype='u1', compressor=Jpeg2k()
... )
<zarr.core.Array (512, 512, 3) uint8>

Access image data in a sequence of JP2 files via tifffile.FileSequence and
dask.array:

>>> import tifffile
>>> import dask.array
>>> def jp2_read(filename):
... with open(filename, 'rb') as fh:
... data = fh.read()
... return jpeg2k_decode(data)
>>> with tifffile.FileSequence(jp2_read, '*.jp2') as ims:
... with ims.aszarr() as store:
... dask.array.from_zarr(store)
dask.array<from-zarr, shape=(1, 256, 256, 3)...chunksize=(1, 256, 256, 3)...

View the image in the JP2 file from the command line::

$ python -m imagecodecs _test.jp2

0 comments on commit 792f7d9

Please sign in to comment.