Re: Oversaturated, wrong colours in PDF generated with Reportlab
Robin Becker <[email protected]> Thu, 15 Apr 2021 11:42:10 +0100
| Newsgroups | gmane.comp.python.reportlab.user |
|---|---|
| Message-ID | <[email protected]> |
On 14/04/2021 18:05, Stefano Salati via reportlab-users wrote: > Hello, > I'm including several images (JPEG, RGB, color profile sRGB IEC61966-2.1) in a pdf using the drawImage() method. The images are exported with Adobe Lightroom. I'm using MacOS BigSur. > In the resulting pdf all images have oversaturated colours if the pdf is opened with MacOS Preview, and normal colours if opened with, say, Google Chrome. > I searched in the Reportlab docs but I cannot find anything that can help me here. Does it have anything to do with the pdf document config or the way images are included? > > I don't think it's got anything to do with the images themselves because, if I create a pdf with some other sw, say MacOS Keynote, colours are fine. > Also interesting: if I open the file gerenated with Reportlab with MacOS Preview and export it as pdf, all colours are "fixed". > > Thanks a lot in advance for any help! Hi Stefano, The rl code just uses jpegs directly, but I suspect any RGB image with a specific colour space will need extra code somehow. Ie a specific colour space would need to be used; I don't think we support those as yet. -- Robin Becker