Discuss Scratch

BarelySmooth
Scratcher
1000+ posts

Importing .SVG Files don't work properly

Importing “.svg” files do not work properly. I am trying to import an svg vector file but it does not display properly in the editor. The image displays itself properly in other viewers like Microsoft Edge.

Edit: I made a project for demonstration. On clicking “See inside” and the third sprite, Scratch instantly crashes. Once again, the file can be opened perfectly in other .svg viewers.

My browser / operating system: Windows 10, Edge Chromium Dev 90.0.4421.0, No Flash version detected

Last edited by BarelySmooth (March 7, 2021 16:33:17)

PraCoco
Scratcher
1000+ posts

Importing .SVG Files don't work properly

PUNNAMOODU wrote:

Importing “.svg” files do not work properly. I am trying to import an svg vector file but it does not display properly in the editor. The image displays itself properly in other viewers like Microsoft Edge.

My browser / operating system: Windows NT 10.0, Chrome 88.0.4324.150, No Flash version detected
How about trying to convert it to a PNg or a JPG? That might help…
If you want a website, SVG –> JPG converter
BarelySmooth
Scratcher
1000+ posts

Importing .SVG Files don't work properly

PraCoco wrote:

PUNNAMOODU wrote:

Importing “.svg” files do not work properly. I am trying to import an svg vector file but it does not display properly in the editor. The image displays itself properly in other viewers like Microsoft Edge.

My browser / operating system: Windows NT 10.0, Chrome 88.0.4324.150, No Flash version detected
How about trying to convert it to a PNg or a JPG? That might help…
If you want a website, SVG –> JPG converter (link removed)

That fixes the issue but I lose the ability to edit the image in the scratch editor. It also loses its quality (it becomes a little pixelated)

Last edited by BarelySmooth (March 20, 2021 15:32:13)

Chiroyce
Scratcher
1000+ posts

Importing .SVG Files don't work properly

Which software was it created in?
BarelySmooth
Scratcher
1000+ posts

Importing .SVG Files don't work properly

Chiroyce wrote:

Which software was it created in?

I tried it first in Libre Office Draw and it did not go well.
Then I tried a very simple one using Inkscape and it worked fine.
Again I tried a little more complex one with Inkscape and it did not work.
Yafdance
Scratcher
100+ posts

Importing .SVG Files don't work properly

I use Vectornater and I also have this issue
BarelySmooth
Scratcher
1000+ posts

Importing .SVG Files don't work properly

Yafdance wrote:

I use Vectornater and I also have this issue

So the issue is with how scratch handles vector graphics from specific applications, right?
BarelySmooth
Scratcher
1000+ posts

Importing .SVG Files don't work properly

bump
BarelySmooth
Scratcher
1000+ posts

Importing .SVG Files don't work properly

I still cannot import .svg (vector) files from specific applications.
Chiroyce
Scratcher
1000+ posts

Importing .SVG Files don't work properly

PUNNAMOODU wrote:

I still cannot import .svg (vector) files from specific applications.

Yes, scratch SVG renderer doesn't support a few features in other programs.
BarelySmooth
Scratcher
1000+ posts

Importing .SVG Files don't work properly

Chiroyce wrote:

PUNNAMOODU wrote:

I still cannot import .svg (vector) files from specific applications.

Yes, scratch SVG renderer doesn't support a few features in other programs.
Oh That's sad.


But is there a way to still use the .svg format? When I import a vector file, the image pops up on the tiny thumbnail but not in the editor or on the stage
BarelySmooth
Scratcher
1000+ posts

Importing .SVG Files don't work properly

Is there a workaround for this?
Chiroyce
Scratcher
1000+ posts

Importing .SVG Files don't work properly

PUNNAMOODU wrote:

Is there a workaround for this?
I don’t know
RedMonster12
Scratcher
100+ posts

Importing .SVG Files don't work properly

i can view an image on stage in a scratch project, but if i go inside into the costume editor, there is no image, it's as if according to the editor it is non-existent
BarelySmooth
Scratcher
1000+ posts

Importing .SVG Files don't work properly

I made a project for demonstration. On clicking “See inside” and the third sprite , Scratch instantly crashes. Once again, the file can be opened perfectly in other .svg viewers.


Oops! Something went wrong

We are so sorry, but it looks like Scratch has crashed. This bug has been automatically reported to the Scratch Team. Please refresh your page to try again. Your error was logged with id:
BarelySmooth
Scratcher
1000+ posts

Importing .SVG Files don't work properly

Is there any other application that Scratch handles perfectly?
BarelySmooth
Scratcher
1000+ posts

Importing .SVG Files don't work properly

-Aerova- wrote:

Usually, when an ‘SVG’ doesn't display correctly, I go into the 'Costumes' menu and just move it a bit. Then, it will display correctly on the stage..
Moving them does make the sprite visible but it loses rounded corners, transparency, etc.

-Aerova- wrote:

For vector text, you could convert the text from 'Object -> Path' in Inkscape, which is another trick that works for me. If that does not work, you could also try exporting as an 'Optimized SVG'.
Optimised SVG yields the same results (it loses rounded corners, transparency, etc.), even when I check the “Work around renderer bugs” in Inkscape's Export dialog box.

Last edited by BarelySmooth (March 4, 2021 07:00:04)

BarelySmooth
Scratcher
1000+ posts

Importing .SVG Files don't work properly

bump
hiPeeps124816
Scratcher
500+ posts

Importing .SVG Files don't work properly

the javascript console shows these messages once it crashes:
hiPeeps124816
Scratcher
500+ posts

Importing .SVG Files don't work properly

The crash is something about the canvas width.

Powered by DjangoBB