Re: Oversaturated, wrong colours in PDF generated with Reportlab
Stefano Salati via reportlab-users <[email protected]> Thu, 15 Apr 2021 11:18:56 +0000
| Newsgroups | gmane.comp.python.reportlab.user |
|---|---|
| Message-ID | <1wOiechdpz41w6kaH3ubFfuObxLRLbU40o2TVp08b0shJIVEPbZ0uDaH5njuk95-GFffewRo2HepFyIsPexue8tmDx48euvl4rDXT0-W658=@protonmail.com> |
Thanks Robin! I tried with images in color space RGB and two different colour profiles: - sRGB (the most diffused colour space for non-printed content) images are oversaturated by Reportlab - AdobeRGB1998 images are treated fine I'm wondering if there's anything I can do to solve this. ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ On Thursday, 15 April 2021 12:42, Robin Becker <[email protected]> wrote: > 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 > > reportlab-users mailing list > [email protected] > https://pairlist2.pair.net/mailman/listinfo/reportlab-users _______________________________________________ reportlab-users mailing list [email protected] https://pairlist2.pair.net/mailman/listinfo/reportlab-users