Closed villares closed 1 year ago
Is this the correct SVG file you are trying to use?
I can't get this to work in Processing, so if this is the right file, it won't work in py5 either. Processing's ability to read SVG files is limited to a subset of the SVG language specs. That explains the initial "Filters are not supported." and "Ignoring
I think yes, it is the same file, but, maybe try this one: https://github.com/villares/desenho-sem-argumentos/blob/2022/1_outubro_2022/gerador_completo/base_frente.svg
Which version of Processing Python Mode are you using? Mine is Processing 3.5.4 + Python Mode 3063
The "filter" being ignored is what makes the images grayscale in GitHub render, I suppose. I applied them in Inkscape, and noticed they got ignored.
@villares, Can you test this in Processing and tell me if you see the same problem there also?
I'm confused about what you previously said about completing this using processing.py instead. How did you get it to work using that library since that is also based on Processing?
Yep, works for me in Processing Java too.
Can you try it with Processing 4?
Oh... yeah... this could be it. Let me try.
Cool... we found a Processing 4 bug!
Illegal base64 character 20
Looks like an encoding issue...
Yes, we did! Since it worked in 3.5.4, the Processing team will probably want to get it working in 4.0 also.
I will close this, since there's nothing more for us to do here.
I have also tried simplified SVG files with erratic results. This might not be a single issue. But we have to start somewhere, right?
When I try the minimal example below with this file: https://github.com/villares/desenho-sem-argumentos/commit/70a04a45803de359135f15e2daaab84302f2b35d
Warnings and errors:
Visual (incomplete) result: