Skip to content

fix(photos): jixel-enc builds against png 0.18 - #1618

Merged
oddharsh merged 1 commit into
mainfrom
fix/jixel-enc-png-018
Nov 9, 2026
Merged

oddharsh merged 1 commit into
mainfrom
fix/jixel-enc-png-018

Conversation

@oddharsh

@oddharsh oddharsh commented Nov 9, 2026 •

Copy link
Copy Markdown
Owner

tools/photos/jixel-enc hasn't compiled on main since #1553 bumped png from 0.17.16 to 0.18.1, so the HIF archive step of bun run photos (hif-archive.ts) couldn't build its encoder.

Two API changes in png 0.18, both in encode_png:

  • Decoder::new now wants BufRead + Seek, and &[u8] isn't Seek, so the bytes go in through std::io::Cursor.
  • output_buffer_size() returns Option<usize>, which is None when the frame size overflows usize; that case now returns "PNG too large".

Checked locally on 2026-11-09 against origin/main at 7500ecb:

  • cargo build --release --locked --manifest-path tools/photos/jixel-enc/Cargo.toml passes.
  • cargo test --locked on the crate: 5 passed, 0 failed.
  • cargo clippy --locked --all-targets -- -D warnings (what native photo validation runs) is clean.

native photo validation went red on #1553 and #1616 and both merged by hand, because it's deliberately not a required check: it's path-filtered to tools/photos/**, and a required check that never triggers leaves unrelated PRs pending forever, so making it required would mean folding it into validate behind a paths condition.

png 0.18's Decoder wants BufRead + Seek, which &[u8] isn't, and
output_buffer_size() now returns Option<usize>. #1553 bumped png
from 0.17.16 without either change, so the HIF archive step of
`bun run photos` couldn't build its encoder.
@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Wire-size diff vs merge base

7500ecb0e44895fc27bf8b55c1e875266489b772 → d50ae11c102bce5aca33ccc08d8e43c85752aafe

Brotli q11, the quality the edge serves. Every number here is deterministic:
an unchanged file produces no row. Advisory — this check fails on nothing.

Client assets

No change. 40 files, 235.99 KiB Brotli total.

Pages

No change. 77 files, 715.95 KiB Brotli total.

Worker bundle

No change. 299.47 KiB gzip.

Dictionary transport

Family dictionary acquisition: no change, 14.50 KiB q11.

pd/: no change. 274 deltas, 475.63 KiB total.

Head tags vs merge base

No change. 77 documents, every title, description, canonical, robots, og:*, twitter:*, alternate, JSON-LD type and oracle status identical.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
aadhar-sh 5429615 Commit Preview URL

Branch Preview URL
Nov 09 2026, 06:33 PM

@oddharsh
oddharsh merged commit bee20c2 into main Nov 9, 2026
10 checks passed
@oddharsh
oddharsh deleted the fix/jixel-enc-png-018 branch November 9, 2026 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant