Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for parsing eXIf chunk. #568

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

anforowicz
Copy link
Contributor

The eXIf chunk was already supported in encoder.rs, but this commit also adds support to decoder/stream.rs. This commit is needed for parity with the existing PNG decoder in Blink / Chromium - see https://crbug.com/390707316

The `eXIf` chunk was already supported in `encoder.rs`, but this commit
also adds support to `decoder/stream.rs`.  This commit is needed for
parity with the existing PNG decoder in Blink / Chromium - see
https://crbug.com/390707316
aarongable pushed a commit to chromium/chromium that referenced this pull request Jan 18, 2025
This CL (together with image-rs/image-png#568
and http://review.skia.org/937702) is needed to pass
`external/wpt/css/css-images/image-orientation/image-orientation-exif-png-2.html`
when using `SkPngRustCodec`.

Bug: chromium:390707316
Change-Id: I9255e8dba666113a91c7d82ba461b565fc5c5e24
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6183155
Auto-Submit: Łukasz Anforowicz <[email protected]>
Reviewed-by: Peter Kasting <[email protected]>
Commit-Queue: Peter Kasting <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1408322}
hubot pushed a commit to google/skia that referenced this pull request Jan 22, 2025
This CL parses the `eXIf` data reported by the `png` crate and exposes
the image orientation (`SkEncodedOrigin`) through `SkCodec`'s public
API.  This CL depends on `png` crate populating/reporting the decoded
`eXIf` chunk's data - this is being implemented in
image-rs/image-png#568

Bug: chromium:390707316
Change-Id: Ieaf05c772e7a74492f5312f103b132bc888806d4
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/937702
Reviewed-by: Florin Malita <[email protected]>
Commit-Queue: Łukasz Anforowicz <[email protected]>
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