-
Notifications
You must be signed in to change notification settings - Fork 253
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
Feature request: include ICC profile in documents #697
Comments
Thank you for the feature suggestion @eroux 😊 |
Reopening as VeraPDF checker spotted a couple of issues with our current implementation:
Both checks failed for file |
The 1st check seems like a false positive, as The 2nd one seems legit, I am creating a PR to fix it. |
Thanks! |
PDFs have a special way to indicate the ICC profile of an image that overrides the one potentially embedded in an image. This means that PDF viewers will ignore the ICC profile embedded in an image. Currently fpdf never writes the ICC profile so that they are consistently ignored.
Here's a sample image with an ICC profile:
Here's a PDF embedding this image through img2pdf (which writes the ICC profile in the PDF):
test-icc-img2pdf.pdf
the code I'm using to test this is:
which produces the following PDF:
image_types_insert_jpg_with_icc.pdf
The two PDFs look different in a a PDF viewer (the correct one is more red).
The text was updated successfully, but these errors were encountered: