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

Issue with image colors when converting to PDF #1311

Open
HAWAWINI opened this issue Sep 11, 2023 Discussed in #1310 · 1 comment
Open

Issue with image colors when converting to PDF #1311

HAWAWINI opened this issue Sep 11, 2023 Discussed in #1310 · 1 comment

Comments

@HAWAWINI
Copy link

Discussed in #1310

Originally posted by HAWAWINI September 11, 2023
Hi everyone,

I have an issue with some images when putting an image from Active Storage to Prawn PDF. Apparently the colors are different and as i'm generating PDF for an ART gallery, they are not happy with the results. Here is an example of the problem :

image
Original Image

image PDF output

Thank you in advance for your help

@pointlessone
Copy link
Member

My guess would be the color profile is ignored. Unfortunately, Prawn currently doesn't support color profiles (either for images or for the whole document) and as far as I can tell, there's no workaround. You'd have to either extend JPG/PNG image support to add color profile support, or dive deep into PDF spec to manually add color profile to you documents (hint: there are PRs that try to add document color profile support, search for PDF/A).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants