-
Notifications
You must be signed in to change notification settings - Fork 44
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 renders different (without masks) #169
Comments
Another update on this issue. https://www.npmjs.com/package/canvaskit-wasm seems to work, rendering both sources as expected. This should indicate that this isn't a |
@animanathome The difference is likely due to the version issue. The current Currently I have no capacity on going over the version update, unfortunately. |
Thank you for getting back to me so quickly @kyamagu. I was assuming as much. Since |
Describe the bug
Rendered output looks different from browser (chrome - v96/firefox - v95/safari - v15.1).
Source SVG:
https://storage.cloud.google.com/lumen5-prod-lottie/test.svg
SVG Rendered using browser (GOOD)
SVG Rendered using skia-python (BAD)
The SVG uses a combination of
clipPath
,mask
,g
,rect
,path
andfilter
tags.To Reproduce
Run the following code:
With the docker container running specified below, I use
xvfb-run -a -n 0 -s "-ac -screen 0 1920x1080x24" python src/render_skia_svg.py
. This should generate the BAD image.Expected behaviour
We expect
skia-python
to generate the GOOD image. The white shape is actually a mask, displaying the background color. In this case, white.Desktop (please complete the following information):
python:3.7.12-buster
The is my docker build file
@kyamagu As far as I understand,
skia
is being used withinchrome
andfirefox
so I would expect thisSVG
to render the same result inskia-python
then it does in the browser. Thank you for looking at this.The text was updated successfully, but these errors were encountered: