[reportlab-users] Re: cmyk-images

"Jürgen R. Plasser" plasser at hexagon.at
Wed Aug 17 08:42:04 EDT 2005


Hi,

In the following I quote Robin's answer to the question if reportlab is 
able to handle CMYK images.

Robin Becker wrote:
> Robin Becker wrote:
> 
>> OK got it; will have a look see now.
> 
> OK it seems as though JPEG CMKY is not totally standardized. I can get 
> the result to work properly by adding /Decode [1 0 1 0 1 0 1 0]
> 
> Trouble is I don't know what the required test would be to determine 
> whether this should be added or not.

I have just tried to reproduce Robin's suggestions and it works by 
inserting /Decode [1 0 1 0 1 0 1 0] by editing the resulting pdf file 
directly. Otherwise the image seems to be inverted, the same effect 
happening to rgb images when i insert the /Decode command.

Is there any other solution to this problem in reportlab by now? I need 
to handle rgb and cmyk images, if necessary in one and the same document.

There've been some threads on this list about cmyk images. I came to the 
conclusion that it should not be to much work to get it running.

Jürgen


-- 
DI Jürgen R. Plasser

Hexagon Business Solutions
Weblog: http://blog.hexagon.at
Security-Check: http://security.hexagon.at



More information about the reportlab-users mailing list