BigBadaboom / androidsvg

SVG rendering library for Android
http://bigbadaboom.github.io/androidsvg/
Apache License 2.0
1.21k stars 231 forks source link

colrv1 asset with multi-layers #279

Open idontveapc opened 1 year ago

idontveapc commented 1 year ago

Describe the bug

A clear and concise description of what the bug is.

i used a colr1(svg) asset that's said to be "heavy" or "has many layers". that looks: 1. https://private-user-images.githubusercontent.com/122597295/287426560-03a88c3c-af89-4b2e-9c5f-02afe6ed29ec.png 2. https://private-user-images.githubusercontent.com/122597295/287426572-65dbcdd3-5b3b-40f2-ae1e-56a0e0d71299.png

To Reproduce

Expected behavior

A clear and concise description of what you expected to happen.

*chromium example of how it should be showed:

https://private-user-images.githubusercontent.com/122597295/287426620-7b3e6842-fd64-430e-9ac5-0056e8b335d0.png https://private-user-images.githubusercontent.com/122597295/287426628-7d2f4c71-ca0e-4665-8224-940d39dd1093.png Stack traces

If an exception is being thrown, please include the exception message and any stacktraces, or other relevant logging.

SVG file

In order to reproduce the bug, we almost certainly need the actual SVG that fails.\ You can either include the file as an attachment, or small files may be embedded as a code snippet.\ If the file is large, or there are Intellectual Property issues, please reduce the file to a minimal version that reproduces the fault.

use the link(s) given in reproduction steps.

Screenshots

If applicable, add screenshots to help show the actual and/or expected results.

see this comment

Device

If the problem only occurs on some devices, please include the following info.

  • Device(s): [e.g. Google Pixel 3]
  • Android version or API level: [e.g. 8.1 or API 27]

Additional context

Add any other context about the problem here.

this library ("Android SVG") is used by "an android app" on which this issue exist.

idontveapc commented 1 year ago

sorry images links aren't working (because i already created this issue on other repo(s)).

accordingly... 287426560-03a88c3c-af89-4b2e-9c5f-02afe6ed29ec 287426572-65dbcdd3-5b3b-40f2-ae1e-56a0e0d71299

the *chromium ones... 287426620-7b3e6842-fd64-430e-9ac5-0056e8b335d0 287426628-7d2f4c71-ca0e-4665-8224-940d39dd1093

BigBadaboom commented 12 months ago

What both these SVGs have in common is that they use filters. Currently AndroidSVG does not support filters. I am confident that is the cause of the differences.

Until recently, it wasn't really feasible to support filters, due to the lack of support in the Android API. I think it may be somewhat possible now. But implementing support probably won't happen anytime soon, I'm sorry.