Repository navigation
Add ICC profiles to images in PDF and update usvg, svg2pdf - #822
Merged
Merged
Conversation
reknih
marked this pull request as draft
April 15, 2023 17:57
reknih
force-pushed
the
main
branch
4 times, most recently
from
April 23, 2023 17:35
102fa05 to
b79121d
Compare
usvg, svg2pdf
usvg, svg2pdfusvg, svg2pdf
reknih
marked this pull request as ready for review
May 2, 2023 10:38
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.
This branch updates
imageto version 0.24.6 which supports ICC profile extraction for JPEG, PNG, and AVIF.Consequently, the ICC profile of JPEG and PNG files is now embedded into the PDF file. It is not read or processed in-between. GIF files with ICC profiles exist, but are not in common use, for now I continue to assume Device color spaces for all GIFs and other files without a color profile.
Raster image generation will continue to ignore the ICC profile in images.
This PR also contains updates for
svg2pdfand the version bumps forusvg,resvg,ttf-parser,tiny-skia, andrustybuzz.Why is this still a draft?pdf-writercontains the necessary features on main, but the current release does not. Releasepdf-writer0.7.0.pdf-writerin Typst needs to be in sync with the version insvg2pdf. Updatesvg2pdf. This is also why CI is failing.src/image.rs. This is ugly. Decide if we want to eat the run time cost of aBoxso I can deduplicate this code.Fixes #1027
Fixes #368