-
Notifications
You must be signed in to change notification settings - Fork 226
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
Add support for additional image-rendering attributes #833
Conversation
Not sure if we should update We should also update CLI help for resvg/usvg. The |
Also, aren't |
Looks like it, but |
I don't think The only way to "document" it is to create a test that would be failing. I personally thought the whole point of this feature is |
Yes, the main intention was to support the CSS attributes in the first place, so that you don’t end up with bicubic rendering if “pixelated” was requested. But I will see whether I can figure it out. |
@LaurenzV can you ping on email? I haven't been able to find your email. |
Sent you an e-mail with the content "animation-charred-annoying-otter". |
I think getting pixelated 100% correct is going to be very difficult. I think what we would have to do is
But this is pretty hard because it requires us to change the transform in the parent group of the image that scales the raster image to the intended size. Would it be okay for you if I simply remark in the source code that pixelated doesn't work completely correctly yet? |
Yes, we can "skip" As for parent transforms, yes, I'm not sure what is the expected output here. We need a bunch of tests to figure it out. And I'm not even sure what we're expected to do when rotation and/or skew transforms are present. |
Let's add |
Thanks! |
Fixes #828