[ENH]: Support JPEG XL output in savefig()

オープン
#32,467 コメント 2 件 リアクション 1 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
matplotlib, python

調査の方向性

Start by reading the savefig() format handling and raster backend code, then check how optional image encoders and their dependencies are supported. The issue does not name specific files or tests; map the existing output format path before choosing an implementation. Done means .jxl output works through fig.savefig() with an optional encoder, and the supported defaults, compression settings, and metadata behavior are defined.

索引モデルが issue の本文から書いたものです。

説明

New feature
Problem

Matplotlib does not natively support exporting figures in JPEG XL (.jxl) format. JPEG XL offers efficient lossless and lossy compression, high bit-depth support, and potentially smaller files than PNG or JPEG, making it attractive for scientific visualizations, particularly raster-heavy figures. Currently, users must rely on external conversion tools or additional processing steps.

Proposed solution

Add JPEG XL as an optional raster output format for savefig(), ideally using an existing backend such as imagecodecs or a Pillow JPEG XL plugin, without introducing a mandatory dependency.

For example:

fig.savefig("figure.jxl", format="jxl")

Ideally, the implementation would support lossless encoding by default, optional lossy compression settings, and appropriate metadata preservation.

主要言語
Python
スター
23.5k
フォーク
8.6k
平均マージ
1日 19時間
マージ済み PR(30日)
64

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

matplotlib/matplotlib のほかの issue

matplotlib/matplotlib の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。