Skip to main content

JPEG-2000 Compression for zarr chunks

Project description

zarr-jpeg2k

About

JPEG-2000 encoded and decoder for of Zarr chunks using imagecodecs. Works with 2D and interleaved RGB data.

Usage

from zarr_jpeg2k import jpeg2k
import numpy as np
import zarr
codec = jpeg2k(level=50)
data = np.arange(100000000, dtype='uint8').reshape(10000, 10000)
# without zarr
encoded = codec.encode(data)
decoded = codec.decode(encoded)
# with zarr
z = zarr.array(data, chunks=(1000, 1000), compressor=codec)

References

This repo is heavily influenced by zarr-jpeg which uses JPEG encoding to compress chunks of data.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zarr-jpeg2k-0.1.0rc3.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

zarr_jpeg2k-0.1.0rc3-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file zarr-jpeg2k-0.1.0rc3.tar.gz.

File metadata

  • Download URL: zarr-jpeg2k-0.1.0rc3.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

File hashes

Hashes for zarr-jpeg2k-0.1.0rc3.tar.gz
Algorithm Hash digest
SHA256 f7bd1e7508818d72ab6fb3eb3a23787afa82fbe42eb24ec186d6b625faf46db9
MD5 3e76695cd6079ff4f56f6ac9e9d06e83
BLAKE2b-256 5a058f221f57e82eaf599250f37c05bb08727e909445fdb1ad4bc200afb33dbc

See more details on using hashes here.

File details

Details for the file zarr_jpeg2k-0.1.0rc3-py3-none-any.whl.

File metadata

  • Download URL: zarr_jpeg2k-0.1.0rc3-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

File hashes

Hashes for zarr_jpeg2k-0.1.0rc3-py3-none-any.whl
Algorithm Hash digest
SHA256 e7fa813b4ce5aaee65a1197d9426a09c3157ef8b3f7ff11988593f566753d624
MD5 608ad43799c9473f3d1fcadb15d1d32a
BLAKE2b-256 44192c4154ab5fee23255c1ab52ea67ac20c0e8e306ea46d5a513d4c19f63256

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page