Skip to content

Call fixupSvgString on all SVGs #219

@fsih

Description

@fsih

Expected Behavior

fixupSvgString fixes common issues that make SVGs invalid. Probably any SVG uploaded to Scratch should have these fixes applied. This way, Scratch would support more SVGs.
https://github.com/LLK/scratch-svg-renderer/blob/9ebf57588aa596c4fa3bb64209e10ade395aee90/src/fixup-svg-string.js#L51

Actual Behavior

fixupSvgString is currently only called if optVersion == 2 here (i.e. when loading a sb2 or sprite2)
https://github.com/LLK/scratch-vm/blob/e63993257210ce9f3a66ac764f7f4b1941f63fa5/src/import/load-costume.js#L10

Describe what actually happens

Steps to Reproduce

Explain what someone needs to do in order to see what's described in Actual behavior above

Operating System and Browser

e.g. Mac OS 10.11.6 Safari 10.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions