[reportlab-users] Oversaturated, wrong colours in PDF generated with Reportlab

Stefano Salati ste.salati at protonmail.com
Thu Apr 15 07:18:56 EDT 2021


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 <robin at reportlab.com> 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
> reportlab-users at lists2.reportlab.com
> https://pairlist2.pair.net/mailman/listinfo/reportlab-users




More information about the reportlab-users mailing list