Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pillow-jxl-plugin

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pillow-jxl-plugin

Pillow plugin for JPEG-XL, using Rust for bindings.

  • 1.3.0
  • PyPI
  • Socket score

Maintainers
1

pillow-jpegxl-plugin

PyPI - Version CI

Pillow plugin for JPEG-XL, using Rust for bindings.

Features

  • JPEG-XL Plugin for Pillow
  • Encoder/Decoder to work with JPEG-XL using safe wrapper
  • Support EXIF metadata encoding

Install via PIP

pip install pillow-jxl-plugin

Build from source

Make sure Rust installed, then run:

git clone https://github.com/Isotr0py/pillow-jpegxl-plugin
cd pillow-jpegxl-plugin

pip install -e .[dev] -v

If you have libjxl installed and want to use dynamic link, run:

pip install -e .[dev] -v --config-settings=build-args="--features=dynamic"

Plugin Usage

Use import pillow_jxl to register the plugin in your code.

Example:

import pillow_jxl
from PIL import Image

# Lossless encode a png image
with Image.open("example.png") as img:
    img.save("example.jxl",lossless=True)

# encode image with JPEG-Style quality
with Image.open("example.png") as img:
    img.save("example.jxl", quality=98)

# Lossless construct from a jpeg image
with Image.open("example.jpg") as img:
    img.save("example.jxl",lossless=True)

# Decode jxl image
with Image.open("example.jxl") as img:
    display(img)

Wheels status

WheelsWindows 64-bitMacOSmanylinuxmusllinux
CPython3.9
CPython3.10
CPython3.11
CPython3.12
CPython3.13
PyPy3.9
PyPy3.10

Credits

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc