Repository navigation
fix(photos): jixel-enc builds against png 0.18 - #1618
Merged
Merged
Conversation
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.
Contributor
Wire-size diff vs merge base
Brotli q11, the quality the edge serves. Every number here is deterministic: Client assetsNo change. 40 files, 235.99 KiB Brotli total. PagesNo change. 77 files, 715.95 KiB Brotli total. Worker bundleNo change. 299.47 KiB gzip. Dictionary transportFamily dictionary acquisition: no change, 14.50 KiB q11.
Head tags vs merge baseNo change. 77 documents, every title, description, canonical, robots, |
Deploying with
|
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
tools/photos/jixel-enchasn't compiled onmainsince #1553 bumped png from 0.17.16 to 0.18.1, so the HIF archive step ofbun run photos(hif-archive.ts) couldn't build its encoder.Two API changes in png 0.18, both in
encode_png:Decoder::newnow wantsBufRead + Seek, and&[u8]isn'tSeek, so the bytes go in throughstd::io::Cursor.output_buffer_size()returnsOption<usize>, which isNonewhen the frame size overflowsusize; that case now returns "PNG too large".Checked locally on 2026-11-09 against
origin/mainat 7500ecb:cargo build --release --locked --manifest-path tools/photos/jixel-enc/Cargo.tomlpasses.cargo test --lockedon the crate: 5 passed, 0 failed.cargo clippy --locked --all-targets -- -D warnings(whatnative photo validationruns) is clean.native photo validationwent red on #1553 and #1616 and both merged by hand, because it's deliberately not a required check: it's path-filtered totools/photos/**, and a required check that never triggers leaves unrelated PRs pending forever, so making it required would mean folding it intovalidatebehind a paths condition.