Skip to content
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

SVGs generated with blocklys screenshot functionality are kind of invalid #375

Closed
BjoernLuig opened this issue Nov 25, 2024 · 3 comments
Closed

Comments

@BjoernLuig
Copy link
Contributor

Describe the bug
SVGs generated with blocklys screenshot functionality are kind of invalid and can not be processed (properly) by some applications.

To Reproduce
Steps to reproduce the behavior:

  1. Go to blockly
  2. click on "download screenshot"

Show SVG in ubuntu file explorer
image

Upload SVG to Canva -> doesnt work
image

Download such an SVG from a Mattermost Message -> Mattermost crashes
image

Same issues seem to persist over multiple operating systems (Ubuntu, Windows, Mac). Same Programms (Browsers) seem to work around this problem. SVG files from other sources do not have these problems.

Expected behavior
Blocklys screenshot functionality creates a "valid SVG file.

Additional context
Some users had similar problems with invalid SVGs from other sources.
photopea/photopea#4663

@Thiemann96
Copy link
Contributor

from my personal experience using different svg's editors you sort of have to find the right one as not all editor support all svg files. Alternatively we could offer .png files as an alternative

@Thiemann96
Copy link
Contributor

Thiemann96 commented Jan 10, 2025

grafik

so i can send blockly generated svg's , maybe its a ubuntu problem, it certainly is a mattermost problem though 🤷

@BjoernLuig
Copy link
Contributor Author

BjoernLuig commented Jan 10, 2025

Mattermost also crashed on my Iphone in this case.
But when testing now, mattermost works on all Plattforms, so i would assume it got fixed and is no problem on our side.

(It still does not work in Canva 😔)
grafik

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants