CairoSVG icon indicating copy to clipboard operation
CairoSVG copied to clipboard

Wrong svg to png conversion after latest update

Open faisalakhlaq opened this issue 2 years ago • 1 comments

In the latest updates when an SVG is converted to png the output does not come as expected (the colors are lost). I believe its because of the change in the cairosvg/image.py file where a check is added to convert "CMYK" to "RGB".

82        if image.mode == "CMYK":
83            image = image.convert("RGB")

Can I ask what is this doing. Maybe there is a problem while converting CMYK to RGB. Sorry I am not providing the files but I found the error after updating and then rolled back to the previous version.

faisalakhlaq avatar Jun 12 '23 13:06 faisalakhlaq

Hi!

Could you please provide a CMYK image that would help us to reproduce the problem?

liZe avatar Jun 18 '23 13:06 liZe