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

Support rendering to u16/f32 per channel pixel formats #355

Closed
virtualritz opened this issue Feb 14, 2021 · 3 comments
Closed

Support rendering to u16/f32 per channel pixel formats #355

virtualritz opened this issue Feb 14, 2021 · 3 comments

Comments

@virtualritz
Copy link

See subject.

Eight bit/channel are not enough for most smooth gradients etc.

@RazrFalcon
Copy link
Owner

SVG is technically 8bit only. I don't know any app that supports rendering SVG to 16/32bit bitmaps.

On the other hand, since we're using our own rendering library, it fairly easy to implement. So this basically blocked only by tiny-skia.

@virtualritz
Copy link
Author

The colors are specified in 8bit.
As soon as you blend them in any meaningful way (opacity, interpolation etc), you end up aliasing if you promote the result back to 8bit. Yes, you can dither but that's not the same.

I think this would be great to have.

@RazrFalcon
Copy link
Owner

Out of scope. This should be done by tiny-skia anyway: RazrFalcon/tiny-skia#63

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