Skip to content

Fix png palette decoding when mode is UNCHANGED.#1543

Merged
NicolasHug merged 2 commits into
meta-pytorch:mainfrom
NicolasHug:palette_png
Jul 23, 2026
Merged

Fix png palette decoding when mode is UNCHANGED.#1543
NicolasHug merged 2 commits into
meta-pytorch:mainfrom
NicolasHug:palette_png

Conversation

@NicolasHug

@NicolasHug NicolasHug commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

A palette png with mode=UNCHANGED was returning raw palette indices - that's incorrect. This PR fixes it, aligning the behavior with PIL's.

Oh, this also adds num_threads to avif - oops, forgot to switch branches. Oh well.

@pytorch-bot

pytorch-bot Bot commented Jul 23, 2026

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/meta-pytorch/torchcodec/1543

Note: Links to docs will display an error until the docs builds have been completed.

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

❌ 1 New Failure, 10 Pending

As of commit 1058cac with merge base e732df2 (image):

NEW FAILURE - The following job has failed:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jul 23, 2026
@NicolasHug
NicolasHug merged commit d5f6575 into meta-pytorch:main Jul 23, 2026
81 of 82 checks passed
@NicolasHug
NicolasHug deleted the palette_png branch July 23, 2026 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant