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

SVG with ICC colors is not rendered correctly #3974

Open
1 task done
Wongboo opened this issue Apr 21, 2024 · 7 comments
Open
1 task done

SVG with ICC colors is not rendered correctly #3974

Wongboo opened this issue Apr 21, 2024 · 7 comments
Labels
bug Something isn't working svg Anything about the file format for people who like to have fun. upstream Issues in dependencies.

Comments

@Wongboo
Copy link

Wongboo commented Apr 21, 2024

Description

svg rendered weired
截屏2024-04-21 21 49 45
截屏2024-04-21 21 50 15

Reproduction URL

https://typst.app/project/ph2HV071Y0tJ1lVojf8ytt

Operating system

Web app

Typst version

  • I am using the latest version of Typst
@Wongboo Wongboo added the bug Something isn't working label Apr 21, 2024
@LaurenzV
Copy link
Sponsor Collaborator

The project does not seem to be accessible, can you post the SVG here?

@Wongboo
Copy link
Author

Wongboo commented Apr 22, 2024

https://typst.app/project/wW5kE31GRsDhL6TcmJ0eIg this can be seen and edited.

@LaurenzV
Copy link
Sponsor Collaborator

Ah I see now... The problem is that your SVG seems to use icc colors, which is currently not supported by the upstream crate. So if you somehow have control over that, you should try to change it so it uses "normal" rgb colors. But a bug nevertheless.

@LaurenzV LaurenzV added the svg Anything about the file format for people who like to have fun. label Apr 22, 2024
@Wongboo
Copy link
Author

Wongboo commented Apr 22, 2024

Thank you for your reply! I now see how the problem happens.
BTW, Is there any CLI tool to convert icc to rgb? inkscape seems can't.

@LaurenzV
Copy link
Sponsor Collaborator

Not that I know of, unfortunately. :(

@Enivex
Copy link
Collaborator

Enivex commented Apr 22, 2024

Ah I see now... The problem is that your SVG seems to use icc colors, which is currently not supported by the upstream crate. So if you somehow have control over that, you should try to change it so it uses "normal" rgb colors. But a bug nevertheless.

Is this a duplicate of #3781 ?

@LaurenzV
Copy link
Sponsor Collaborator

No, this is a different issue.

@LaurenzV LaurenzV added the upstream Issues in dependencies. label Apr 27, 2024
@laurmaedje laurmaedje changed the title svg rendered werid SVG with ICC colors is not rendered correctly Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working svg Anything about the file format for people who like to have fun. upstream Issues in dependencies.
Projects
None yet
Development

No branches or pull requests

3 participants