Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong svg to png conversion after latest update #391

Open
faisalakhlaq opened this issue Jun 12, 2023 · 1 comment
Open

Wrong svg to png conversion after latest update #391

faisalakhlaq opened this issue Jun 12, 2023 · 1 comment

Comments

@faisalakhlaq
Copy link

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.

@liZe
Copy link
Member

liZe commented Jun 18, 2023

Hi!

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants