-
Notifications
You must be signed in to change notification settings - Fork 227
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
Document color space of rendered output #629
Comments
Technically there are no color space. But we assume it is sRGB. |
This might be obvious to people who are more familiar with SVGs. I was confused when I double checked my code for color space correctness. Maybe one sentence somewhere in the resvg docs would help clear it up. The way I understand it now is that tiny-skia has no concept of color spaces and resvg follows whatever SVG does, which is always sRGB. Feel free to close the issue if you think it isn't needed. |
You could imagine a different svg library where the final output is presented to the user in a Pixmap equivalent that is in a different color space. For example, it could be linear RGB instead of sRGB with gamma. This is why I was unsure. |
The resvg documentation does not mention the color space of the rendered output. The type that
render
works with isPixMap
, which is documented like this:This doesn't tell me what the color space is. SVG works in sRGB color space. A manual test shows that resvg stays in sRGB. This wasn't obvious to me. Could it be documented explicitly?
The text was updated successfully, but these errors were encountered: