Metadata-Version: 2.4
Name: pyblanket
Version: 0.1.0
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Operating System :: MacOS
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Rust
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: 3.15
Classifier: Topic :: Multimedia :: Graphics
Classifier: Topic :: Multimedia :: Graphics :: Graphics Conversion
License-File: LICENSE
License-File: THIRD_PARTY_LICENSES.md
License-File: licenses/libheif-COPYING
License-File: licenses/third-party/SOURCE.txt
License-File: licenses/third-party/aom/AUTHORS
License-File: licenses/third-party/aom/LICENSE
License-File: licenses/third-party/aom/PATENTS
License-File: licenses/third-party/aom/third_party/fastfeat/LICENSE
License-File: licenses/third-party/aom/third_party/googletest/src/LICENSE
License-File: licenses/third-party/aom/third_party/highway/LICENSE-BSD3
License-File: licenses/third-party/aom/third_party/libwebm/AUTHORS.TXT
License-File: licenses/third-party/aom/third_party/libwebm/LICENSE.TXT
License-File: licenses/third-party/aom/third_party/libwebm/PATENTS.TXT
License-File: licenses/third-party/aom/third_party/libyuv/LICENSE
License-File: licenses/third-party/aom/third_party/vector/LICENSE
License-File: licenses/third-party/aom/third_party/x86inc/LICENSE
License-File: licenses/third-party/dav1d/COPYING
License-File: licenses/third-party/dav1d/doc/PATENTS
License-File: licenses/third-party/lcms2/AUTHORS
License-File: licenses/third-party/lcms2/LICENSE
License-File: licenses/third-party/lcms2/plugins/fast_float/COPYING.GPL3
License-File: licenses/third-party/lcms2/plugins/threaded/COPYING.GPL3
License-File: licenses/third-party/lcms2/utils/jpgicc/LICENSE_iccjpeg
License-File: licenses/third-party/libde265/AUTHORS
License-File: licenses/third-party/libde265/COPYING
License-File: licenses/third-party/libde265/dec265/COPYING
License-File: licenses/third-party/libde265/enc265/COPYING
License-File: licenses/third-party/libde265/libde265/COPYING
License-File: licenses/third-party/libde265/scripts/check_licenses.sh
License-File: licenses/third-party/libde265/sherlock265/COPYING
License-File: licenses/third-party/libheif/COPYING
License-File: licenses/third-party/libheif/examples/COPYING
License-File: licenses/third-party/libheif/scripts/check-licenses.sh
License-File: licenses/third-party/libjxl/AUTHORS
License-File: licenses/third-party/libjxl/LICENSE
License-File: licenses/third-party/libjxl/PATENTS
License-File: licenses/third-party/libjxl/debian/copyright
License-File: licenses/third-party/libjxl/lib/extras/LICENSE.apngdis
License-File: licenses/third-party/libjxl/testdata/LICENSE
License-File: licenses/third-party/libjxl/testdata/PATENTS
License-File: licenses/third-party/libjxl/testdata/external/Compact-ICC-Profiles/license
License-File: licenses/third-party/libjxl/testdata/external/pngsuite/PngSuite.LICENSE
License-File: licenses/third-party/libjxl/testdata/external/raw.pixls/LICENSE.md
License-File: licenses/third-party/libjxl/testdata/external/wesaturate/LICENSE.md
License-File: licenses/third-party/libjxl/testdata/external/wide-gamut-tests/LICENSE
License-File: licenses/third-party/libjxl/third_party/HEVCSoftware/cfg/LICENSE
License-File: licenses/third-party/libjxl/third_party/brotli/LICENSE
License-File: licenses/third-party/libjxl/third_party/googletest/LICENSE
License-File: licenses/third-party/libjxl/third_party/highway/LICENSE
License-File: licenses/third-party/libjxl/third_party/highway/LICENSE-BSD3
License-File: licenses/third-party/libjxl/third_party/highway/debian/copyright
License-File: licenses/third-party/libjxl/third_party/lcms/AUTHORS
License-File: licenses/third-party/libjxl/third_party/lcms/LICENSE
License-File: licenses/third-party/libjxl/third_party/lcms/plugins/fast_float/COPYING.GPL3
License-File: licenses/third-party/libjxl/third_party/lcms/plugins/threaded/COPYING.GPL3
License-File: licenses/third-party/libjxl/third_party/lcms/utils/jpgicc/LICENSE_iccjpeg
License-File: licenses/third-party/libjxl/third_party/libjpeg-turbo/LICENSE.md
License-File: licenses/third-party/libjxl/third_party/libjpeg-turbo/README.ijg
License-File: licenses/third-party/libjxl/third_party/libjpeg-turbo/release/License.rtf
License-File: licenses/third-party/libjxl/third_party/libpng/AUTHORS
License-File: licenses/third-party/libjxl/third_party/libpng/LICENSE
License-File: licenses/third-party/libjxl/third_party/libpng/ci/LICENSE_MIT.txt
License-File: licenses/third-party/libjxl/third_party/libpng/contrib/gregbook/COPYING
License-File: licenses/third-party/libjxl/third_party/libpng/contrib/gregbook/LICENSE
License-File: licenses/third-party/libjxl/third_party/libpng/contrib/pngexif/LICENSE_MIT.txt
License-File: licenses/third-party/libjxl/third_party/libpng/contrib/pngminus/LICENSE.txt
License-File: licenses/third-party/libjxl/third_party/libpng/scripts/cmake/AUTHORS.md
License-File: licenses/third-party/libjxl/third_party/sjpeg/AUTHORS
License-File: licenses/third-party/libjxl/third_party/sjpeg/COPYING
License-File: licenses/third-party/libjxl/third_party/skcms/LICENSE
License-File: licenses/third-party/libjxl/third_party/skcms/bazel/rbe/linux-bazel-4.2.1/LICENSE
License-File: licenses/third-party/libjxl/third_party/skcms/bazel/rbe/windows-bazel-4.2.1/LICENSE
License-File: licenses/third-party/libjxl/third_party/zlib/LICENSE
License-File: licenses/third-party/libjxl/third_party/zlib/contrib/dotzlib/LICENSE_1_0.txt
License-File: licenses/third-party/libwebp/AUTHORS
License-File: licenses/third-party/libwebp/COPYING
License-File: licenses/third-party/libwebp/PATENTS
License-File: licenses/third-party/rust/ab_glyph-0.2.32/LICENSE
License-File: licenses/third-party/rust/ab_glyph_rasterizer-0.1.10/LICENSE
License-File: licenses/third-party/rust/adler2-2.0.1/LICENSE-0BSD
License-File: licenses/third-party/rust/adler2-2.0.1/LICENSE-APACHE
License-File: licenses/third-party/rust/adler2-2.0.1/LICENSE-MIT
License-File: licenses/third-party/rust/ahash-0.8.12/LICENSE-APACHE
License-File: licenses/third-party/rust/ahash-0.8.12/LICENSE-MIT
License-File: licenses/third-party/rust/aligned-0.4.3/LICENSE-APACHE
License-File: licenses/third-party/rust/aligned-0.4.3/LICENSE-MIT
License-File: licenses/third-party/rust/aligned-vec-0.6.4/LICENSE
License-File: licenses/third-party/rust/anyhow-1.0.104/LICENSE-APACHE
License-File: licenses/third-party/rust/anyhow-1.0.104/LICENSE-MIT
License-File: licenses/third-party/rust/arbitrary-1.5.0/LICENSE-APACHE
License-File: licenses/third-party/rust/arbitrary-1.5.0/LICENSE-MIT
License-File: licenses/third-party/rust/arg_enum_proc_macro-0.3.4/LICENSE
License-File: licenses/third-party/rust/arrayvec-0.7.8/LICENSE-APACHE
License-File: licenses/third-party/rust/arrayvec-0.7.8/LICENSE-MIT
License-File: licenses/third-party/rust/as-slice-0.2.1/LICENSE-APACHE
License-File: licenses/third-party/rust/as-slice-0.2.1/LICENSE-MIT
License-File: licenses/third-party/rust/autocfg-1.5.1/LICENSE-APACHE
License-File: licenses/third-party/rust/autocfg-1.5.1/LICENSE-MIT
License-File: licenses/third-party/rust/av-data-0.4.4/LICENSE
License-File: licenses/third-party/rust/av-scenechange-0.14.1/LICENSE
License-File: licenses/third-party/rust/av1-grain-0.2.5/LICENSE
License-File: licenses/third-party/rust/avif-serialize-0.8.9/LICENSE
License-File: licenses/third-party/rust/bit_field-0.10.3/LICENSE-APACHE
License-File: licenses/third-party/rust/bit_field-0.10.3/LICENSE-MIT
License-File: licenses/third-party/rust/bitflags-2.13.2/LICENSE-APACHE
License-File: licenses/third-party/rust/bitflags-2.13.2/LICENSE-MIT
License-File: licenses/third-party/rust/bitreader-0.3.11/LICENSE-APACHE
License-File: licenses/third-party/rust/bitreader-0.3.11/LICENSE-MIT
License-File: licenses/third-party/rust/bitstream-io-4.10.0/LICENSE-APACHE
License-File: licenses/third-party/rust/bitstream-io-4.10.0/LICENSE-MIT
License-File: licenses/third-party/rust/bon-3.10.3/LICENSE-APACHE
License-File: licenses/third-party/rust/bon-3.10.3/LICENSE-MIT
License-File: licenses/third-party/rust/bon-macros-3.10.3/LICENSE-APACHE
License-File: licenses/third-party/rust/bon-macros-3.10.3/LICENSE-MIT
License-File: licenses/third-party/rust/built-0.8.1/LICENSE
License-File: licenses/third-party/rust/bumpalo-3.20.3/LICENSE-APACHE
License-File: licenses/third-party/rust/bumpalo-3.20.3/LICENSE-MIT
License-File: licenses/third-party/rust/byte-slice-cast-1.2.3/LICENSE
License-File: licenses/third-party/rust/bytemuck-1.25.2/LICENSE-APACHE
License-File: licenses/third-party/rust/bytemuck-1.25.2/LICENSE-MIT
License-File: licenses/third-party/rust/bytemuck-1.25.2/LICENSE-ZLIB
License-File: licenses/third-party/rust/bytemuck_derive-1.12.1/LICENSE-APACHE
License-File: licenses/third-party/rust/bytemuck_derive-1.12.1/LICENSE-MIT
License-File: licenses/third-party/rust/bytemuck_derive-1.12.1/LICENSE-ZLIB
License-File: licenses/third-party/rust/byteorder-1.5.0/COPYING
License-File: licenses/third-party/rust/byteorder-1.5.0/LICENSE-MIT
License-File: licenses/third-party/rust/byteorder-1.5.0/UNLICENSE
License-File: licenses/third-party/rust/byteorder-lite-0.1.0/LICENSE-MIT
License-File: licenses/third-party/rust/byteorder-lite-0.1.0/UNLICENSE
License-File: licenses/third-party/rust/bytes-1.12.1/LICENSE
License-File: licenses/third-party/rust/cc-1.10.0/LICENSE-APACHE
License-File: licenses/third-party/rust/cc-1.10.0/LICENSE-MIT
License-File: licenses/third-party/rust/cfg-expr-0.20.10/LICENSE-APACHE
License-File: licenses/third-party/rust/cfg-expr-0.20.10/LICENSE-MIT
License-File: licenses/third-party/rust/cfg-if-1.0.5/LICENSE-APACHE
License-File: licenses/third-party/rust/cfg-if-1.0.5/LICENSE-MIT
License-File: licenses/third-party/rust/cmake-0.1.58/LICENSE-APACHE
License-File: licenses/third-party/rust/cmake-0.1.58/LICENSE-MIT
License-File: licenses/third-party/rust/color_quant-1.1.0/LICENSE
License-File: licenses/third-party/rust/core_maths-0.1.1/LICENSE
License-File: licenses/third-party/rust/crc32fast-1.5.3/LICENSE-APACHE
License-File: licenses/third-party/rust/crc32fast-1.5.3/LICENSE-MIT
License-File: licenses/third-party/rust/crossbeam-deque-0.8.8/LICENSE-APACHE
License-File: licenses/third-party/rust/crossbeam-deque-0.8.8/LICENSE-MIT
License-File: licenses/third-party/rust/crossbeam-epoch-0.9.21/LICENSE-APACHE
License-File: licenses/third-party/rust/crossbeam-epoch-0.9.21/LICENSE-MIT
License-File: licenses/third-party/rust/crossbeam-utils-0.8.23/LICENSE-APACHE
License-File: licenses/third-party/rust/crossbeam-utils-0.8.23/LICENSE-MIT
License-File: licenses/third-party/rust/crunchy-0.2.4/LICENSE
License-File: licenses/third-party/rust/darling-0.24.1/LICENSE
License-File: licenses/third-party/rust/darling_core-0.24.1/LICENSE
License-File: licenses/third-party/rust/darling_macro-0.24.1/LICENSE
License-File: licenses/third-party/rust/dav1d-0.11.1/LICENSE
License-File: licenses/third-party/rust/dav1d-sys-0.8.3/LICENSE
License-File: licenses/third-party/rust/dunce-1.0.5/LICENSE
License-File: licenses/third-party/rust/either-1.19.0/LICENSE-APACHE
License-File: licenses/third-party/rust/either-1.19.0/LICENSE-MIT
License-File: licenses/third-party/rust/enumn-0.1.14/LICENSE-APACHE
License-File: licenses/third-party/rust/enumn-0.1.14/LICENSE-MIT
License-File: licenses/third-party/rust/equator-0.4.2/LICENSE
License-File: licenses/third-party/rust/equator-macro-0.4.2/LICENSE
License-File: licenses/third-party/rust/equivalent-1.0.3/LICENSE-APACHE
License-File: licenses/third-party/rust/equivalent-1.0.3/LICENSE-MIT
License-File: licenses/third-party/rust/errno-0.3.14/LICENSE-APACHE
License-File: licenses/third-party/rust/errno-0.3.14/LICENSE-MIT
License-File: licenses/third-party/rust/exr-1.74.2/LICENSE.md
License-File: licenses/third-party/rust/fallible_collections-0.4.9/LICENSE-APACHE
License-File: licenses/third-party/rust/fallible_collections-0.4.9/LICENSE-MIT
License-File: licenses/third-party/rust/fastrand-2.5.0/LICENSE-APACHE
License-File: licenses/third-party/rust/fastrand-2.5.0/LICENSE-MIT
License-File: licenses/third-party/rust/fax-0.2.7/LICENSE
License-File: licenses/third-party/rust/fdeflate-0.3.7/LICENSE-APACHE
License-File: licenses/third-party/rust/fdeflate-0.3.7/LICENSE-MIT
License-File: licenses/third-party/rust/find-msvc-tools-0.1.15/LICENSE-APACHE
License-File: licenses/third-party/rust/find-msvc-tools-0.1.15/LICENSE-MIT
License-File: licenses/third-party/rust/flate2-1.1.10/LICENSE-APACHE
License-File: licenses/third-party/rust/flate2-1.1.10/LICENSE-MIT
License-File: licenses/third-party/rust/foreign-types-0.5.0/LICENSE-APACHE
License-File: licenses/third-party/rust/foreign-types-0.5.0/LICENSE-MIT
License-File: licenses/third-party/rust/foreign-types-macros-0.2.4/LICENSE-APACHE
License-File: licenses/third-party/rust/foreign-types-macros-0.2.4/LICENSE-MIT
License-File: licenses/third-party/rust/foreign-types-shared-0.3.1/LICENSE-APACHE
License-File: licenses/third-party/rust/foreign-types-shared-0.3.1/LICENSE-MIT
License-File: licenses/third-party/rust/four-cc-0.4.0/LICENSE-APACHE
License-File: licenses/third-party/rust/four-cc-0.4.0/LICENSE-MIT
License-File: licenses/third-party/rust/gcd-2.3.0/LICENSE-APACHE
License-File: licenses/third-party/rust/gcd-2.3.0/LICENSE-MIT
License-File: licenses/third-party/rust/getrandom-0.3.4/LICENSE-APACHE
License-File: licenses/third-party/rust/getrandom-0.3.4/LICENSE-MIT
License-File: licenses/third-party/rust/getrandom-0.4.3/LICENSE-APACHE
License-File: licenses/third-party/rust/getrandom-0.4.3/LICENSE-MIT
License-File: licenses/third-party/rust/gif-0.14.2/LICENSE-APACHE
License-File: licenses/third-party/rust/gif-0.14.2/LICENSE-MIT
License-File: licenses/third-party/rust/glob-0.3.4/LICENSE-APACHE
License-File: licenses/third-party/rust/glob-0.3.4/LICENSE-MIT
License-File: licenses/third-party/rust/half-2.7.1/LICENSE-APACHE
License-File: licenses/third-party/rust/half-2.7.1/LICENSE-MIT
License-File: licenses/third-party/rust/hashbrown-0.13.2/LICENSE-APACHE
License-File: licenses/third-party/rust/hashbrown-0.13.2/LICENSE-MIT
License-File: licenses/third-party/rust/hashbrown-0.17.1/LICENSE-APACHE
License-File: licenses/third-party/rust/hashbrown-0.17.1/LICENSE-MIT
License-File: licenses/third-party/rust/heck-0.5.0/LICENSE-APACHE
License-File: licenses/third-party/rust/heck-0.5.0/LICENSE-MIT
License-File: licenses/third-party/rust/ident_case-1.0.1/LICENSE
License-File: licenses/third-party/rust/image-0.25.10/LICENSE-APACHE
License-File: licenses/third-party/rust/image-0.25.10/LICENSE-MIT
License-File: licenses/third-party/rust/image-webp-0.2.4/LICENSE-APACHE
License-File: licenses/third-party/rust/image-webp-0.2.4/LICENSE-MIT
License-File: licenses/third-party/rust/imgref-1.12.3/LICENSE-APACHE
License-File: licenses/third-party/rust/imgref-1.12.3/LICENSE-CC0
License-File: licenses/third-party/rust/indexmap-2.14.2/LICENSE-APACHE
License-File: licenses/third-party/rust/indexmap-2.14.2/LICENSE-MIT
License-File: licenses/third-party/rust/interpolate_name-0.2.4/LICENSE
License-File: licenses/third-party/rust/itertools-0.14.0/LICENSE-APACHE
License-File: licenses/third-party/rust/itertools-0.14.0/LICENSE-MIT
License-File: licenses/third-party/rust/jobserver-0.1.35/LICENSE-APACHE
License-File: licenses/third-party/rust/jobserver-0.1.35/LICENSE-MIT
License-File: licenses/third-party/rust/jpegxl-rs-0.16.0+libjxl-0.12.0/COPYING
License-File: licenses/third-party/rust/jpegxl-rs-0.16.0+libjxl-0.12.0/LICENSE
License-File: licenses/third-party/rust/jpegxl-src-0.12.0/LICENSE
License-File: licenses/third-party/rust/jpegxl-src-0.12.0/libjxl/AUTHORS
License-File: licenses/third-party/rust/jpegxl-src-0.12.0/libjxl/LICENSE
License-File: licenses/third-party/rust/jpegxl-src-0.12.0/libjxl/PATENTS
License-File: licenses/third-party/rust/jpegxl-src-0.12.0/libjxl/lib/extras/LICENSE.apngdis
License-File: licenses/third-party/rust/jpegxl-src-0.12.0/libjxl/third_party/HEVCSoftware/cfg/LICENSE
License-File: licenses/third-party/rust/jpegxl-src-0.12.0/libjxl/third_party/brotli/LICENSE
License-File: licenses/third-party/rust/jpegxl-src-0.12.0/libjxl/third_party/highway/LICENSE
License-File: licenses/third-party/rust/jpegxl-src-0.12.0/libjxl/third_party/highway/LICENSE-BSD3
License-File: licenses/third-party/rust/jpegxl-src-0.12.0/libjxl/third_party/highway/debian/copyright
License-File: licenses/third-party/rust/jpegxl-src-0.12.0/libjxl/third_party/skcms/LICENSE
License-File: licenses/third-party/rust/jpegxl-src-0.12.0/libjxl/third_party/skcms/bazel/rbe/linux-bazel-4.2.1/LICENSE
License-File: licenses/third-party/rust/jpegxl-src-0.12.0/libjxl/third_party/skcms/bazel/rbe/windows-bazel-4.2.1/LICENSE
License-File: licenses/third-party/rust/jpegxl-src-0.12.0/libjxl/third_party/zlib/LICENSE
License-File: licenses/third-party/rust/jpegxl-sys-0.13.0+libjxl-0.12.0/COPYING
License-File: licenses/third-party/rust/jpegxl-sys-0.13.0+libjxl-0.12.0/LICENSE
License-File: licenses/third-party/rust/lcms2-6.2.0/LICENSE
License-File: licenses/third-party/rust/lcms2-sys-4.0.7/vendor/LICENSE
License-File: licenses/third-party/rust/lebe-0.5.3/LICENSE-BSD-3-Clause
License-File: licenses/third-party/rust/libc-0.2.191/LICENSE-APACHE
License-File: licenses/third-party/rust/libc-0.2.191/LICENSE-MIT
License-File: licenses/third-party/rust/libfuzzer-sys-0.4.13/LICENSE-APACHE
License-File: licenses/third-party/rust/libfuzzer-sys-0.4.13/LICENSE-MIT
License-File: licenses/third-party/rust/libheif-rs-3.0.0/LICENSE
License-File: licenses/third-party/rust/libheif-rs-3.0.0/data/LICENSE-CC-BY-SA-4.0
License-File: licenses/third-party/rust/libheif-sys-5.3.1+1.23.1/LICENSE
License-File: licenses/third-party/rust/libheif-sys-5.3.1+1.23.1/vendor/libheif/COPYING
License-File: licenses/third-party/rust/libheif-sys-5.3.1+1.23.1/vendor/libheif/scripts/check-licenses.sh
License-File: licenses/third-party/rust/libm-0.2.16/LICENSE.txt
License-File: licenses/third-party/rust/libwebp-sys-0.14.4/vendor/COPYING
License-File: licenses/third-party/rust/libwebp-sys-0.14.4/vendor/PATENTS
License-File: licenses/third-party/rust/linux-raw-sys-0.12.1/COPYRIGHT
License-File: licenses/third-party/rust/linux-raw-sys-0.12.1/LICENSE-APACHE
License-File: licenses/third-party/rust/linux-raw-sys-0.12.1/LICENSE-Apache-2.0_WITH_LLVM-exception
License-File: licenses/third-party/rust/linux-raw-sys-0.12.1/LICENSE-MIT
License-File: licenses/third-party/rust/log-0.4.34/LICENSE-APACHE
License-File: licenses/third-party/rust/log-0.4.34/LICENSE-MIT
License-File: licenses/third-party/rust/loop9-0.1.5/LICENSE
License-File: licenses/third-party/rust/maybe-rayon-0.1.1/LICENSE
License-File: licenses/third-party/rust/memchr-2.8.3/COPYING
License-File: licenses/third-party/rust/memchr-2.8.3/LICENSE-MIT
License-File: licenses/third-party/rust/memchr-2.8.3/UNLICENSE
License-File: licenses/third-party/rust/miniz_oxide-0.8.9/LICENSE
License-File: licenses/third-party/rust/miniz_oxide-0.8.9/LICENSE-APACHE.md
License-File: licenses/third-party/rust/miniz_oxide-0.8.9/LICENSE-MIT.md
License-File: licenses/third-party/rust/miniz_oxide-0.8.9/LICENSE-ZLIB.md
License-File: licenses/third-party/rust/miniz_oxide-0.9.1/LICENSE
License-File: licenses/third-party/rust/miniz_oxide-0.9.1/LICENSE-APACHE.md
License-File: licenses/third-party/rust/miniz_oxide-0.9.1/LICENSE-MIT.md
License-File: licenses/third-party/rust/miniz_oxide-0.9.1/LICENSE-ZLIB.md
License-File: licenses/third-party/rust/moxcms-0.8.1/LICENSE-APACHE.md
License-File: licenses/third-party/rust/moxcms-0.8.1/LICENSE.md
License-File: licenses/third-party/rust/mp4parse-0.17.0/LICENSE
License-File: licenses/third-party/rust/nasm-rs-0.3.2/LICENSE-APACHE
License-File: licenses/third-party/rust/nasm-rs-0.3.2/LICENSE-MIT
License-File: licenses/third-party/rust/new_debug_unreachable-1.0.6/LICENSE-MIT
License-File: licenses/third-party/rust/no_std_io2-0.9.4/LICENSE-APACHE
License-File: licenses/third-party/rust/no_std_io2-0.9.4/LICENSE-MIT
License-File: licenses/third-party/rust/nom-8.0.0/LICENSE
License-File: licenses/third-party/rust/noop_proc_macro-0.3.0/LICENSE
License-File: licenses/third-party/rust/num-bigint-0.4.8/LICENSE-APACHE
License-File: licenses/third-party/rust/num-bigint-0.4.8/LICENSE-MIT
License-File: licenses/third-party/rust/num-complex-0.4.6/LICENSE-APACHE
License-File: licenses/third-party/rust/num-complex-0.4.6/LICENSE-MIT
License-File: licenses/third-party/rust/num-derive-0.4.2/LICENSE-APACHE
License-File: licenses/third-party/rust/num-derive-0.4.2/LICENSE-MIT
License-File: licenses/third-party/rust/num-integer-0.1.47/LICENSE-APACHE
License-File: licenses/third-party/rust/num-integer-0.1.47/LICENSE-MIT
License-File: licenses/third-party/rust/num-rational-0.4.2/LICENSE-APACHE
License-File: licenses/third-party/rust/num-rational-0.4.2/LICENSE-MIT
License-File: licenses/third-party/rust/num-traits-0.2.19/LICENSE-APACHE
License-File: licenses/third-party/rust/num-traits-0.2.19/LICENSE-MIT
License-File: licenses/third-party/rust/once_cell-1.21.4/LICENSE-APACHE
License-File: licenses/third-party/rust/once_cell-1.21.4/LICENSE-MIT
License-File: licenses/third-party/rust/openjpeg-sys-1.0.12/vendor/LICENSE
License-File: licenses/third-party/rust/owned_ttf_parser-0.25.1/LICENSE
License-File: licenses/third-party/rust/paste-1.0.15/LICENSE-APACHE
License-File: licenses/third-party/rust/paste-1.0.15/LICENSE-MIT
License-File: licenses/third-party/rust/pastey-0.1.1/LICENSE-APACHE
License-File: licenses/third-party/rust/pastey-0.1.1/LICENSE-MIT
License-File: licenses/third-party/rust/pkg-config-0.3.34/LICENSE-APACHE
License-File: licenses/third-party/rust/pkg-config-0.3.34/LICENSE-MIT
License-File: licenses/third-party/rust/png-0.18.1/LICENSE-APACHE
License-File: licenses/third-party/rust/png-0.18.1/LICENSE-MIT
License-File: licenses/third-party/rust/portable-atomic-1.15.0/LICENSE-APACHE
License-File: licenses/third-party/rust/portable-atomic-1.15.0/LICENSE-MIT
License-File: licenses/third-party/rust/ppv-lite86-0.2.21/LICENSE-APACHE
License-File: licenses/third-party/rust/ppv-lite86-0.2.21/LICENSE-MIT
License-File: licenses/third-party/rust/prettyplease-0.3.0/LICENSE-APACHE
License-File: licenses/third-party/rust/prettyplease-0.3.0/LICENSE-MIT
License-File: licenses/third-party/rust/proc-macro2-1.0.107/LICENSE-APACHE
License-File: licenses/third-party/rust/proc-macro2-1.0.107/LICENSE-MIT
License-File: licenses/third-party/rust/pulp-0.22.3/LICENSE
License-File: licenses/third-party/rust/pxfm-0.1.30/LICENSE-APACHE.md
License-File: licenses/third-party/rust/pxfm-0.1.30/LICENSE.md
License-File: licenses/third-party/rust/pyo3-0.30.1/LICENSE-APACHE
License-File: licenses/third-party/rust/pyo3-0.30.1/LICENSE-MIT
License-File: licenses/third-party/rust/pyo3-0.30.1/pyo3-runtime/LICENSE-APACHE
License-File: licenses/third-party/rust/pyo3-0.30.1/pyo3-runtime/LICENSE-MIT
License-File: licenses/third-party/rust/pyo3-build-config-0.30.1/LICENSE-APACHE
License-File: licenses/third-party/rust/pyo3-build-config-0.30.1/LICENSE-MIT
License-File: licenses/third-party/rust/pyo3-ffi-0.30.1/LICENSE-APACHE
License-File: licenses/third-party/rust/pyo3-ffi-0.30.1/LICENSE-MIT
License-File: licenses/third-party/rust/pyo3-macros-0.30.1/LICENSE-APACHE
License-File: licenses/third-party/rust/pyo3-macros-0.30.1/LICENSE-MIT
License-File: licenses/third-party/rust/pyo3-macros-backend-0.30.1/LICENSE-APACHE
License-File: licenses/third-party/rust/pyo3-macros-backend-0.30.1/LICENSE-MIT
License-File: licenses/third-party/rust/qoi-0.4.1/LICENSE-APACHE
License-File: licenses/third-party/rust/qoi-0.4.1/LICENSE-MIT
License-File: licenses/third-party/rust/quick-error-2.0.1/LICENSE-APACHE
License-File: licenses/third-party/rust/quick-error-2.0.1/LICENSE-MIT
License-File: licenses/third-party/rust/quote-1.0.47/LICENSE-APACHE
License-File: licenses/third-party/rust/quote-1.0.47/LICENSE-MIT
License-File: licenses/third-party/rust/r-efi-5.3.0/AUTHORS
License-File: licenses/third-party/rust/r-efi-6.0.0/AUTHORS
License-File: licenses/third-party/rust/rand-0.9.5/COPYRIGHT
License-File: licenses/third-party/rust/rand-0.9.5/LICENSE-APACHE
License-File: licenses/third-party/rust/rand-0.9.5/LICENSE-MIT
License-File: licenses/third-party/rust/rand_chacha-0.9.0/COPYRIGHT
License-File: licenses/third-party/rust/rand_chacha-0.9.0/LICENSE-APACHE
License-File: licenses/third-party/rust/rand_chacha-0.9.0/LICENSE-MIT
License-File: licenses/third-party/rust/rand_core-0.9.5/COPYRIGHT
License-File: licenses/third-party/rust/rand_core-0.9.5/LICENSE-APACHE
License-File: licenses/third-party/rust/rand_core-0.9.5/LICENSE-MIT
License-File: licenses/third-party/rust/rav1e-0.8.1/LICENSE
License-File: licenses/third-party/rust/rav1e-0.8.1/PATENTS
License-File: licenses/third-party/rust/ravif-0.13.0/LICENSE
License-File: licenses/third-party/rust/raw-cpuid-11.6.0/AUTHORS
License-File: licenses/third-party/rust/raw-cpuid-11.6.0/LICENSE.md
License-File: licenses/third-party/rust/rayon-1.12.0/LICENSE-APACHE
License-File: licenses/third-party/rust/rayon-1.12.0/LICENSE-MIT
License-File: licenses/third-party/rust/rayon-core-1.13.0/LICENSE-APACHE
License-File: licenses/third-party/rust/rayon-core-1.13.0/LICENSE-MIT
License-File: licenses/third-party/rust/reborrow-0.5.5/LICENSE
License-File: licenses/third-party/rust/rgb-0.8.53/LICENSE
License-File: licenses/third-party/rust/rustc-hash-2.1.3/LICENSE-APACHE
License-File: licenses/third-party/rust/rustc-hash-2.1.3/LICENSE-MIT
License-File: licenses/third-party/rust/rustix-1.1.5/COPYRIGHT
License-File: licenses/third-party/rust/rustix-1.1.5/LICENSE-APACHE
License-File: licenses/third-party/rust/rustix-1.1.5/LICENSE-Apache-2.0_WITH_LLVM-exception
License-File: licenses/third-party/rust/rustix-1.1.5/LICENSE-MIT
License-File: licenses/third-party/rust/rustversion-1.0.23/LICENSE-APACHE
License-File: licenses/third-party/rust/rustversion-1.0.23/LICENSE-MIT
License-File: licenses/third-party/rust/rustybuzz-0.20.1/LICENSE
License-File: licenses/third-party/rust/rustybuzz-0.20.1/scripts/ms-use/COPYING
License-File: licenses/third-party/rust/same-file-1.0.6/COPYING
License-File: licenses/third-party/rust/same-file-1.0.6/LICENSE-MIT
License-File: licenses/third-party/rust/same-file-1.0.6/UNLICENSE
License-File: licenses/third-party/rust/serde_core-1.0.229/LICENSE-APACHE
License-File: licenses/third-party/rust/serde_core-1.0.229/LICENSE-MIT
License-File: licenses/third-party/rust/serde_derive-1.0.229/LICENSE-APACHE
License-File: licenses/third-party/rust/serde_derive-1.0.229/LICENSE-MIT
License-File: licenses/third-party/rust/serde_spanned-1.1.2/LICENSE-APACHE
License-File: licenses/third-party/rust/serde_spanned-1.1.2/LICENSE-MIT
License-File: licenses/third-party/rust/shlex-2.0.1/LICENSE-APACHE
License-File: licenses/third-party/rust/shlex-2.0.1/LICENSE-MIT
License-File: licenses/third-party/rust/simd-adler32-0.3.10/LICENSE.md
License-File: licenses/third-party/rust/smallvec-1.16.4/LICENSE-APACHE
License-File: licenses/third-party/rust/smallvec-1.16.4/LICENSE-MIT
License-File: licenses/third-party/rust/stable_deref_trait-1.2.1/LICENSE-APACHE
License-File: licenses/third-party/rust/stable_deref_trait-1.2.1/LICENSE-MIT
License-File: licenses/third-party/rust/static_assertions-1.1.0/LICENSE-APACHE
License-File: licenses/third-party/rust/static_assertions-1.1.0/LICENSE-MIT
License-File: licenses/third-party/rust/strsim-0.11.1/LICENSE
License-File: licenses/third-party/rust/syn-2.0.119/LICENSE-APACHE
License-File: licenses/third-party/rust/syn-2.0.119/LICENSE-MIT
License-File: licenses/third-party/rust/syn-3.0.9/LICENSE-APACHE
License-File: licenses/third-party/rust/syn-3.0.9/LICENSE-MIT
License-File: licenses/third-party/rust/system-deps-7.0.8/LICENSE-APACHE
License-File: licenses/third-party/rust/system-deps-7.0.8/LICENSE-MIT
License-File: licenses/third-party/rust/system-deps-8.0.0/LICENSE-APACHE
License-File: licenses/third-party/rust/system-deps-8.0.0/LICENSE-MIT
License-File: licenses/third-party/rust/target-lexicon-0.13.5/LICENSE
License-File: licenses/third-party/rust/tempfile-3.27.0/LICENSE-APACHE
License-File: licenses/third-party/rust/tempfile-3.27.0/LICENSE-MIT
License-File: licenses/third-party/rust/thiserror-1.0.69/LICENSE-APACHE
License-File: licenses/third-party/rust/thiserror-1.0.69/LICENSE-MIT
License-File: licenses/third-party/rust/thiserror-2.0.21/LICENSE-APACHE
License-File: licenses/third-party/rust/thiserror-2.0.21/LICENSE-MIT
License-File: licenses/third-party/rust/thiserror-impl-1.0.69/LICENSE-APACHE
License-File: licenses/third-party/rust/thiserror-impl-1.0.69/LICENSE-MIT
License-File: licenses/third-party/rust/thiserror-impl-2.0.21/LICENSE-APACHE
License-File: licenses/third-party/rust/thiserror-impl-2.0.21/LICENSE-MIT
License-File: licenses/third-party/rust/tiff-0.11.3/LICENSE
License-File: licenses/third-party/rust/tiff-0.11.3/tests/COPYRIGHT
License-File: licenses/third-party/rust/toml-1.1.8+spec-1.1.0/LICENSE-APACHE
License-File: licenses/third-party/rust/toml-1.1.8+spec-1.1.0/LICENSE-MIT
License-File: licenses/third-party/rust/toml_datetime-1.1.2+spec-1.1.0/LICENSE-APACHE
License-File: licenses/third-party/rust/toml_datetime-1.1.2+spec-1.1.0/LICENSE-MIT
License-File: licenses/third-party/rust/toml_parser-1.1.5+spec-1.1.0/LICENSE-APACHE
License-File: licenses/third-party/rust/toml_parser-1.1.5+spec-1.1.0/LICENSE-MIT
License-File: licenses/third-party/rust/toml_writer-1.1.3+spec-1.1.0/LICENSE-APACHE
License-File: licenses/third-party/rust/toml_writer-1.1.3+spec-1.1.0/LICENSE-MIT
License-File: licenses/third-party/rust/ttf-parser-0.25.1/LICENSE-APACHE
License-File: licenses/third-party/rust/ttf-parser-0.25.1/LICENSE-MIT
License-File: licenses/third-party/rust/ttf-parser-0.25.1/tests/fonts/colr_1_LICENSE
License-File: licenses/third-party/rust/turbojpeg-1.5.1/LICENSE
License-File: licenses/third-party/rust/turbojpeg-1.5.1/UNLICENSE
License-File: licenses/third-party/rust/turbojpeg-sys-1.2.0/libjpeg-turbo/LICENSE.md
License-File: licenses/third-party/rust/turbojpeg-sys-1.2.0/libjpeg-turbo/README.ijg
License-File: licenses/third-party/rust/turbojpeg-sys-1.2.0/libjpeg-turbo/release/License.rtf
License-File: licenses/third-party/rust/unicode-bidi-0.3.18/AUTHORS
License-File: licenses/third-party/rust/unicode-bidi-0.3.18/COPYRIGHT
License-File: licenses/third-party/rust/unicode-bidi-0.3.18/LICENSE-APACHE
License-File: licenses/third-party/rust/unicode-bidi-0.3.18/LICENSE-MIT
License-File: licenses/third-party/rust/unicode-bidi-mirroring-0.4.0/LICENSE-APACHE
License-File: licenses/third-party/rust/unicode-bidi-mirroring-0.4.0/LICENSE-MIT
License-File: licenses/third-party/rust/unicode-ccc-0.4.0/LICENSE-APACHE
License-File: licenses/third-party/rust/unicode-ccc-0.4.0/LICENSE-MIT
License-File: licenses/third-party/rust/unicode-ident-1.0.27/LICENSE-APACHE
License-File: licenses/third-party/rust/unicode-ident-1.0.27/LICENSE-MIT
License-File: licenses/third-party/rust/unicode-ident-1.0.27/LICENSE-UNICODE
License-File: licenses/third-party/rust/unicode-properties-0.1.4/COPYRIGHT
License-File: licenses/third-party/rust/unicode-properties-0.1.4/LICENSE-APACHE
License-File: licenses/third-party/rust/unicode-properties-0.1.4/LICENSE-MIT
License-File: licenses/third-party/rust/unicode-script-0.5.8/LICENSE-APACHE
License-File: licenses/third-party/rust/unicode-script-0.5.8/LICENSE-MIT
License-File: licenses/third-party/rust/v_frame-0.3.9/LICENSE
License-File: licenses/third-party/rust/vcpkg-0.2.15/LICENSE-APACHE
License-File: licenses/third-party/rust/vcpkg-0.2.15/LICENSE-MIT
License-File: licenses/third-party/rust/version-compare-0.2.1/LICENSE
License-File: licenses/third-party/rust/version_check-0.9.5/LICENSE-APACHE
License-File: licenses/third-party/rust/version_check-0.9.5/LICENSE-MIT
License-File: licenses/third-party/rust/walkdir-2.5.0/COPYING
License-File: licenses/third-party/rust/walkdir-2.5.0/LICENSE-MIT
License-File: licenses/third-party/rust/walkdir-2.5.0/UNLICENSE
License-File: licenses/third-party/rust/wasip2-1.0.4+wasi-0.2.12/LICENSE-APACHE
License-File: licenses/third-party/rust/wasip2-1.0.4+wasi-0.2.12/LICENSE-Apache-2.0_WITH_LLVM-exception
License-File: licenses/third-party/rust/wasip2-1.0.4+wasi-0.2.12/LICENSE-MIT
License-File: licenses/third-party/rust/wasm-bindgen-0.2.129/LICENSE-APACHE
License-File: licenses/third-party/rust/wasm-bindgen-0.2.129/LICENSE-MIT
License-File: licenses/third-party/rust/wasm-bindgen-macro-0.2.129/LICENSE-APACHE
License-File: licenses/third-party/rust/wasm-bindgen-macro-0.2.129/LICENSE-MIT
License-File: licenses/third-party/rust/wasm-bindgen-macro-support-0.2.129/LICENSE-APACHE
License-File: licenses/third-party/rust/wasm-bindgen-macro-support-0.2.129/LICENSE-MIT
License-File: licenses/third-party/rust/wasm-bindgen-shared-0.2.129/LICENSE-APACHE
License-File: licenses/third-party/rust/wasm-bindgen-shared-0.2.129/LICENSE-MIT
License-File: licenses/third-party/rust/webpx-0.4.1/LICENSE-APACHE
License-File: licenses/third-party/rust/webpx-0.4.1/LICENSE-MIT
License-File: licenses/third-party/rust/weezl-0.1.12/LICENSE-APACHE
License-File: licenses/third-party/rust/weezl-0.1.12/LICENSE-MIT
License-File: licenses/third-party/rust/whereat-0.1.5/LICENSE-APACHE
License-File: licenses/third-party/rust/whereat-0.1.5/LICENSE-MIT
License-File: licenses/third-party/rust/winapi-util-0.1.11/COPYING
License-File: licenses/third-party/rust/winapi-util-0.1.11/LICENSE-MIT
License-File: licenses/third-party/rust/winapi-util-0.1.11/UNLICENSE
License-File: licenses/third-party/rust/windows-link-0.2.1/license-apache-2.0
License-File: licenses/third-party/rust/windows-link-0.2.1/license-mit
License-File: licenses/third-party/rust/windows-sys-0.61.2/license-apache-2.0
License-File: licenses/third-party/rust/windows-sys-0.61.2/license-mit
License-File: licenses/third-party/rust/winnow-1.0.4/LICENSE-MIT
License-File: licenses/third-party/rust/wit-bindgen-0.57.1/LICENSE-APACHE
License-File: licenses/third-party/rust/wit-bindgen-0.57.1/LICENSE-Apache-2.0_WITH_LLVM-exception
License-File: licenses/third-party/rust/wit-bindgen-0.57.1/LICENSE-MIT
License-File: licenses/third-party/rust/y4m-0.8.0/LICENSE
License-File: licenses/third-party/rust/zerocopy-0.8.63/LICENSE-APACHE
License-File: licenses/third-party/rust/zerocopy-0.8.63/LICENSE-BSD
License-File: licenses/third-party/rust/zerocopy-0.8.63/LICENSE-MIT
License-File: licenses/third-party/rust/zerocopy-derive-0.8.63/LICENSE-APACHE
License-File: licenses/third-party/rust/zerocopy-derive-0.8.63/LICENSE-BSD
License-File: licenses/third-party/rust/zerocopy-derive-0.8.63/LICENSE-MIT
License-File: licenses/third-party/rust/zlib-rs-0.6.8/LICENSE
License-File: licenses/third-party/rust/zune-core-0.5.3/LICENSE-APACHE
License-File: licenses/third-party/rust/zune-core-0.5.3/LICENSE-MIT
License-File: licenses/third-party/rust/zune-core-0.5.3/LICENSE-ZLIB
License-File: licenses/third-party/rust/zune-jpeg-0.5.15/LICENSE-APACHE
License-File: licenses/third-party/rust/zune-jpeg-0.5.15/LICENSE-MIT
License-File: licenses/third-party/rust/zune-jpeg-0.5.15/LICENSE-ZLIB
License-File: licenses/third-party/x265/COPYING
License-File: licenses/third-party/x265/source/dynamicHDR10/LICENSE.txt
License-File: licenses/third-party/x265/source/dynamicHDR10/json11/LICENSE.txt
Summary: A Rust-backed image library with a Pillow-shaped Python API
Author-email: Andrew Jaffe <adjaffeb@gmail.com>
License-Expression: MIT AND GPL-3.0-or-later
Requires-Python: >=3.12
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Documentation, https://adjb1212.github.io/blanket-docs
Project-URL: Homepage, https://adjb1212.github.io/blanket-docs
Project-URL: Releases, https://github.com/ADJB1212/blanket/releases
Project-URL: Repository, https://github.com/ADJB1212/blanket

# Blanket

**Image processing in Python. Pixel work in Rust.**

[![CI](https://github.com/ADJB1212/blanket/actions/workflows/CI.yml/badge.svg)](https://github.com/ADJB1212/blanket/actions/workflows/CI.yml)
![Python 3.12+](https://img.shields.io/badge/python-3.12%2B-blue)
[![Source license: MIT](https://img.shields.io/badge/source_license-MIT-green)](LICENSE)

Blanket is a Rust-backed image library with a familiar, Pillow-shaped Python
API. Open, transform, and save images using native pixel kernels, with no
Pillow or other Python packages required at runtime.

```python
from blanket import Image, ImageOps

with Image.open("photo.jpg") as image:
    upright = ImageOps.exif_transpose(image)
    thumbnail = ImageOps.fit(upright, (256, 256), method=Image.Resampling.LANCZOS)
    thumbnail.save("thumbnail.webp", quality=85)
```

[Installation](#installation) · [Examples](#examples) ·
[Formats](#supported-formats) · [API notes](https://adjb1212.github.io/blanket-docs/) ·
[Contributing](#contributing)

## Why Blanket?

- **Familiar image APIs.** Work with `Image`, `ImageOps`, `ImageChops`, `ImageColor`, `ImageCms`,
  `ImageDraw`, `ImageEnhance`, `ImageFilter`, `ImageFont`, `ImageMath`, `ImagePalette`,
  `ImagePath`, and `ImageStat`.
- **Native processing.** Rust kernels use SIMD and parallel execution for
  supported operations, with small-image fast paths.
- **ICC color management.** Convert and soft proof 8-bit images with LittleCMS,
  using device profiles or built-in sRGB, Adobe RGB, and Display P3 profiles.
- **Image hashing.** Find visually similar images using native aHash, dHash,
  and pHash kernels, with no NumPy or SciPy runtime dependency.
- **Modern formats.** Read and write JPEG XL, WebP, AVIF, and HEIC/HEIF alongside
  PNG, JPEG, TIFF, BMP, GIF, and ICO. Export single-page PDFs.
- **Explicit precision.** Keep 10-, 12-, and 16-bit samples in supported
  workflows, and choose when to convert to 8 bits.
- **Python interoperability.** Import array data, work with binary streams,
  and convert explicitly to Pillow when you need it.

Blanket is currently **alpha software**. It implements a focused subset of
Pillow's API, centered on images in the `1`, `L`, `LA`, `RGB`, `RGBA`, `HSV`,
`CMYK`, `YCbCr`, and `LAB` modes. It also supports integer `I` and `I;16`
modes, floating-point `F`, and indexed `P` and `PA` images to a limited
extent. It is not yet a drop-in replacement for `PIL`.

See [ImageChops](https://adjb1212.github.io/blanket-docs/ImageChops/) for
arithmetic and blend modes, and
[ImageStat](https://adjb1212.github.io/blanket-docs/ImageStat/) for per-band
statistics.

## Installation

Blanket requires **Python 3.12+**. Install it with pip:

```sh
pip install pyblanket
```

See the [development notes](https://adjb1212.github.io/blanket-docs/development/)
for information on building from source.

## Examples

### Compare image fingerprints

```python
from blanket import Image, ImageHash

with Image.open("first.jpg") as first, Image.open("second.jpg") as second:
    first_hash = ImageHash.phash(first)
    second_hash = ImageHash.phash(second)
    print(first_hash - second_hash)  # Hamming distance: smaller is more similar.
    restored = ImageHash.hex_to_hash(str(first_hash))
```

`average_hash`, `dhash`, and `phash` produce immutable 64-bit values by default.
Pass `hash_size` (2 to 64) for a square of that many bits per side. Compare only
hashes using the same algorithm and settings. Hashing uses the current frame,
converts to 8-bit grayscale, discards alpha, and resizes with Lanczos. Apply
`ImageOps.exif_transpose` first if orientation should affect the fingerprint.
Perceptual hashes are approximate visual fingerprints; choose a distance
threshold for your data and confirm duplicates separately.

### Convert between formats

```python
from blanket import Image

with Image.open("input.png") as image:
    image.convert("RGB").save("output.jpg", quality=85)
    image.save("output.jxl", lossless=True)
```

File extensions select the output format. For binary streams, pass it explicitly:

```python
from io import BytesIO
from blanket import Image

with Image.open("input.png") as image:
    buffer = BytesIO()
    image.save(buffer, format="PNG")
    png_bytes = buffer.getvalue()
```

### Stream image input and output

Feed JPEG XL chunks to `ImageFile.Parser`. Its `image` property returns
an independent preview when a progressive pass is available; `close()`
requires a complete image. Decoding retains a full raster and codec working
memory, while consumed encoded input is discarded.

```python
from blanket import ImageFile

parser = ImageFile.Parser()
with open("input.jxl", "rb") as source:
    while chunk := source.read(64 * 1024):
        parser.feed(chunk)
image = parser.close()

with ImageFile.PngWriter("gradient.png", "L", (1024, 1024)) as writer:
    for y in range(1024):
        writer.write(bytes([y % 256]) * 1024)
```

`PngWriter` accepts complete raw rows and keeps row buffers and compression
state instead of a full raster or encoded output. It supports bilevel, grayscale,
RGB, and alpha, with 10/12/16-bit samples for L/RGB/RGBA. Streaming does not
retain container metadata or support animation. See the
[ImageFile reference](https://adjb1212.github.io/blanket-docs/ImageFile/) for details.

### Optimize a save without additional loss

```python
from blanket import Image
from blanket.Compressor import LosslessImageCompressor

compressor = LosslessImageCompressor(effort=7)
with Image.open("input.png") as image:
    image.save("optimized.png", compressor=compressor)
    image.convert("RGB").save("optimized.jpg", quality=90, compressor=compressor)
    image.save("optimized.jxl", lossless=True, compressor=compressor)
    image.save("optimized.heic", lossless=True, compressor=compressor)
```

The compressor keeps the smallest encoding that preserves the normal save's
decoded pixels. It supports PNG, JPEG, JPEG XL, and HEIF/HEIC; higher effort
tries more settings and takes longer. JPEG optimization preserves DCT
coefficients. This optimizes the requested save, not the original source file:
lossy save settings still introduce their normal loss. See the
[Compressor module](https://adjb1212.github.io/blanket-docs/Compressor/) for the API, format-specific behavior,
and compression benchmarks.

For smaller output with bounded additional pixel error, pass
`LossyImageCompressor(max_rmse=2.0, effort=7)` from `blanket.Compressor`.
It searches PNG color precision or lower JPEG, WebP, JPEG XL, AVIF, and
HEIF/HEIC quality settings, preserving alpha and checking decoded RGB error
against the normal save. The result never exceeds the normal save's size.

### Resize, enhance, and filter

```python
from blanket import Image, ImageEnhance, ImageFilter, ImageOps

with Image.open("photo.jpg") as image:
    resized = ImageOps.contain(image, (1200, 800))
    enhanced = ImageEnhance.Contrast(resized).enhance(1.2)
    sharpened = enhanced.filter(ImageFilter.UnsharpMask(radius=2, percent=150))
    sharpened.save("edited.png")
```

`resize()` supports all six `Image.Resampling` filters. `ImageOps` includes
cropping, padding, flips, color adjustments, and EXIF orientation correction.
`ImageFilter` provides blur, convolution, and rank filters, as well as 3D color
LUTs.

### Convert ICC color profiles

```python
from io import BytesIO
from blanket import Image, ImageCms

with Image.open("photo.jpg") as image:
    source = ImageCms.ImageCmsProfile(BytesIO(image.info["icc_profile"]))
    target = ImageCms.createProfile("sRGB")
    converted = ImageCms.profileToProfile(image, source, target, outputMode="RGB")
    converted.save("srgb.jpg", quality=90)
```

Profiles can also load from a filename. Use `buildTransform()` and
`applyTransform()` to reuse a conversion, or `buildProofTransform()` for soft
proofing. Transforms require 8-bit `L`, `RGB`, `RGBA`, `CMYK`, or `LAB` pixels
and compatible profiles. `applyTransform(..., inPlace=True)` changes only the
current frame and requires identical input/output modes. The output ICC
profile is attached to the transformed image for saving.

### Build an image with transparency

```python
from blanket import Image

background = Image.new("RGBA", (640, 480), "white")
overlay = Image.new("RGBA", (160, 160), (30, 100, 220, 128))
background.alpha_composite(overlay, dest=(40, 40))
background.save("composite.png")
```

Use `paste()` for masked placement, `putalpha()` to set transparency, and
`split()` / `Image.merge()` to work with individual channels.

### Work with NumPy and high-bit-depth images

NumPy is optional. `fromarray()` accepts array-interface objects, including
strided arrays:

```python
import numpy as np
from blanket import Image

samples = np.full((64, 64, 3), 713, dtype=np.uint16)
image = Image.fromarray(samples, bit_depth=10)
image.save("exact.png")
image.convert("RGB", bit_depth=8).save("preview.jpg")
```

`image.bit_depth` reports sample precision. Copying, conversion, pixel access,
splitting, cropping, transposition, and resizing preserve high-bit-depth
samples. Other processing operations require conversion to 8 bits.
See [high-bit-depth images](https://adjb1212.github.io/blanket-docs/high-bit-depth/)
for storage and format-specific behavior.

## Supported formats

Use `from blanket import features` to inspect the installed build:
`features.check("heif_decoder")` reports runtime codec availability,
`features.version("jxl")` reports its backend version, and
`features.blanketinfo()` prints backend and format diagnostics. See the
[features module](https://adjb1212.github.io/blanket-docs/features/) for feature names.

| Format      | Read | Write | Notes                                                                   |
| ----------- | :--: | :---: | ----------------------------------------------------------------------- |
| PNG         | Yes  |  Yes  | Lossless; APNG animation, high-bit-depth and indexed output             |
| JPEG        | Yes  |  Yes  | 8-bit output; convert RGBA to RGB before saving                         |
| JPEG XL     | Yes  |  Yes  | Lossy or lossless; high-bit-depth support                               |
| TIFF        | Yes  |  Yes  | Multi-page read; single-page raw, LZW, Deflate, or JPEG output          |
| WebP        | Yes  |  Yes  | Lossy or lossless; animation read/write                                 |
| AVIF        | Yes  |  Yes  | Primary image only; 8-bit, lossy output                                 |
| HEIC / HEIF | Yes  |  Yes  | HEVC; retains 8-, 10-, or 12-bit source depth                           |
| PDF         |  —   |  Yes  | Multi-page, lossless 8-bit output with transparency                     |
| BMP         | Yes  |  Yes  | 8-bit output; uncompressed                                              |
| GIF         | Yes  |  Yes  | Animation read/write; 256 colors and binary transparency                |
| ICO         | Yes  |  Yes  | Largest icon on read; one PNG icon on write, 1–256 pixels per dimension |
| Netpbm      | Yes  |  Yes  | PBM/PGM/PPM/PAM; bilevel, grayscale, RGB, and PAM alpha; 16-bit support |
| TGA         | Yes  |  Yes  | Indexed/RLE input; uncompressed grayscale, RGB, and alpha output        |
| DDS         | Yes  |  No   | DXT1/DXT3/DXT5; first surface only                                      |
| EPS         | Yes  |  No   | Requires Ghostscript (`gs`); RGB rasterization at 72 DPI                |
| QOI         | Yes  |  Yes  | Lossless 8-bit RGB/RGBA                                                 |
| JPEG 2000   | Yes  |  Yes  | Grayscale/RGB with optional alpha; JP2/J2K input; lossless JP2 output   |
| PCX         | Yes  |  Yes  | Bilevel, indexed, grayscale, and RGB; RLE output                        |
| SGI         | Yes  |  Yes  | Raw/RLE 8/16-bit input; uncompressed 8-bit output                       |
| XBM / XPM   | Yes  |  Yes  | Bilevel XBM; RGB/RGBA XPM with binary transparency                      |
| FITS        | Yes  |  No   | Primary image, first plane; integer/float samples                       |
| SPIDER      | Yes  |  No   | 2D float images and first image of a stack                              |
| Pixar       | Yes  |  No   | Uncompressed RGB raster                                                 |
| MSP         | Yes  |  Yes  | Bilevel; raw/RLE input, uncompressed output                             |
| PALM        |  No  |  Yes  | Bilevel or 8-bit indexed output                                         |
| Sun raster  | Yes  |  No   | Raw/RLE, packed grayscale, indexed, and RGB input                       |

Netpbm opens with `image.format == "PPM"`, including PAM. Saving selects
PBM, PGM, or PPM from modes `1`, `L`, or `RGB`; use `format="PAM"` or `.pam`
for alpha. Netpbm writes high-bit-depth samples as normalized 16-bit values.
JPEG 2000 accepts unsigned, equally sampled grayscale/RGB components up to
16 bits, with optional alpha; signed samples, subsampling, and other color
spaces are unsupported. All JPEG 2000 save extensions write JP2 containers.
Larger JPEG 2000 jobs use up to eight codec workers; `OPJ_NUM_THREADS`
overrides automatic worker selection.
EPS requires Ghostscript (`gs`) on `PATH` and a numeric DSC `BoundingBox`;
it rasterizes to RGB at 72 DPI with a 30-second timeout.

Encoder settings and their defaults are listed in the
[format guide](https://adjb1212.github.io/blanket-docs/formats/). HEIF lossless
compression can still change RGB values during RGB/YUV conversion.

## Compatibility and scope

- **Image modes:** 8-bit processing supports `1`, `L`, `LA`, `RGB`, `RGBA`, `HSV`, `CMYK`, `YCbCr`, and `LAB`.
  Integer `I`, `I;16`, `I;16L`, and `I;16B` and floating-point `F` support pixel access,
  conversion, copying, cropping, transposition, and resizing. `F` also supports
  transforms and TIFF interchange.
  Indexed `P` and `PA` images have a smaller supported operation set.
- **Print and luma/chroma modes:** CMYK uses raw channels without ICC transforms;
  JPEG and 8-bit TIFF retain CMYK on read, and JPEG, TIFF, and PDF support CMYK
  output. CMYK save-time compression optimization is unsupported. YCbCr saves
  to JPEG through RGB and opens back as RGB. Convert either mode to RGB for
  other output formats or direct quantization.
- **LAB:** 8-bit CIE L*a*b* supports pixel operations and TIFF interchange.
  Native, statically linked LittleCMS converts between sRGB and D50 LAB;
  other conversions pass through RGB. LAB save-time compression optimization
  is unsupported.
- **Metadata:** JPEG, PNG, WebP, JPEG XL, HEIF, and TIFF retain EXIF, XMP,
  and ICC profiles on save. `getexif()` provides editable EXIF IFDs and JPEG
  thumbnails. `PngImagePlugin.PngInfo` supplies custom PNG text chunks.
  Explicit `exif`, `xmp`, and `icc_profile` save arguments override source
  metadata; `None` or empty bytes remove it. Profiles are retained without
  applying a color transform.
- **Multiple frames:** GIF, WebP, APNG, and TIFF decode all frames eagerly.
  Use `seek()`, `tell()`, `n_frames`, and `ImageSequence` to navigate them.
  GIF, WebP, APNG, and PDF support `save_all=True, append_images=[...]`.
  Pixel operations and copies apply to the current frame. Animated GIF frames
  use composited RGBA canvases rather than Pillow's palette mode transitions.
- **High bit depth:** sample retention is supported for selected operations
  and formats; HDR tone mapping and HEIF HDR metadata retention are not.
- **Pillow interop:** `image.to_pillow()` creates a Pillow image when Pillow is
  installed. High-bit-depth images must first be converted to 8 bits.

See the [usage and API notes](https://adjb1212.github.io/blanket-docs/) for
operation-specific restrictions, palette support, and interoperability examples.

## Performance

The benchmark suite compares Blanket and Pillow using equal in-memory inputs
and eager decoding. After completing the development setup below, run it with
a release build:

```sh
maturin develop -r --extras test --uv
uv run --no-sync scripts/benchmark.py --sizes web
```

Use `--all` for the full suite or `--sections Resize ImageOps` to select
operations. Use `--sections "Codec I/O" --formats PNG JPEG TIFF` to benchmark
selected image formats. Format names are case-insensitive; the filter only
affects Codec I/O. Results depend on image size, operation, codec settings, and
hardware. The [benchmark guide](https://adjb1212.github.io/blanket-docs/benchmarking/)
explains baseline comparisons and reproducible runs.

## Contributing

Source builds require the Rust nightly pinned in `rust-toolchain.toml` for
portable SIMD.

With the [build prerequisites](#installation) installed, set up a development
environment and run the checks:

```sh
uv sync --no-install-project --extra test
uv tool install maturin
maturin develop --extras test --uv
cargo fmt --check
cargo clippy -- -D warnings
cargo test
uv run --no-sync pytest -q
uv run --no-sync scripts/verify_behavior.py
```

The native core lives in [`crates/`](crates/), the Python API in
[`python/blanket/`](python/blanket/), and compatibility tests in [`tests/`](tests/).
Include a focused regression test when fixing a bug or adding a feature. To
report a problem, [open an issue](https://github.com/ADJB1212/blanket/issues).

## License

Blanket's original source is licensed under the [MIT License](LICENSE).
Official binary wheels include GPL components and are distributed under
GPL-3.0-or-later with their third-party notices and corresponding source.
See [distribution licenses](THIRD_PARTY_LICENSES.md) for details.

