Discuss Scratch

GamingBoyRug
Scratcher
4 posts

SVG Import

My browser / operating system: ChromeOS 12607.34.0, Chrome 79.0.3945.42, No Flash version detected

when I try to import my SVG file I can only see a quarter of it on screen
minor-edit
Scratcher
500+ posts

SVG Import

Can you share a project of just the SVG file?
minor-edit
Scratcher
500+ posts

SVG Import

Separately, try these steps:

Make a copy of the SVG file and open it in a text editor. Add
viewBox=“0 0 480 360”
to the first <svg> tag
<svg viewBox=“0 0 480 360”>
leaving other stuff in the tag already the way it is.

If a viewBox is already there, adjust the values to fit the stage dimensions.

Save as a text file and import.

(If that doesn't work and there is a width and height in the <svg> tag, try adjusting those down to a size within 480 by 360 while keeping them proportional to each other. Or remove them entirely.)

Last edited by minor-edit (Feb. 8, 2020 23:36:27)

GamingBoyRug
Scratcher
4 posts

SVG Import

minor-edit wrote:

Separately, try these steps:

Make a copy of the SVG file and open it in a text editor. Add
viewBox=“0 0 480 360”
to the first <svg> tag
<svg viewBox=“0 0 480 360”>
leaving other stuff in the tag already the way it is.

If a viewBox is already there, adjust the values to fit the stage dimensions.

Save as a text file and import.

(If that doesn't work and there is a width and height in the <svg> tag, try adjusting those down to a size within 480 by 360 while keeping them proportional to each other. Or remove them entirely.)

Thanks that worked for the most part but the costume can no longer be edited whenever I edit it slightly it disappears
minor-edit
Scratcher
500+ posts

SVG Import

GamingBoyRug wrote:

Thanks that worked for the most part but the costume can no longer be edited whenever I edit it slightly it disappears
Hmm. Could you make a project with the original SVG file imported into a list? Then Scratch developers could look at the SVG file from before the costume editor changes, for debugging.

Steps
  1. make project with a list
  2. show list on stage
  3. right click, select “import”
  4. select the SVG file
  5. save and share project
GamingBoyRug
Scratcher
4 posts

SVG Import

minor-edit wrote:

GamingBoyRug wrote:

Thanks that worked for the most part but the costume can no longer be edited whenever I edit it slightly it disappears
Hmm. Could you make a project with the original SVG file imported into a list? Then Scratch developers could look at the SVG file from before the costume editor changes, for debugging.

Steps
  1. make project with a list
  2. show list on stage
  3. right click, select “import”
  4. select the SVG file
  5. save and share project

Ok i will when I get back to my computer I will tell you once ive finished thanks for your hekp
nathaniel00012
Scratcher
45 posts

SVG Import

OS: Windows NT 10.0
Browser: Chrome 80.0.3987.100
First I export my SVG, and then import it into the editor, it's off the original position from when I exported it. This also happens on the backpack, as well as Scratch Desktop.
minor-edit
Scratcher
500+ posts

SVG Import

GamingBoyRug wrote:

Ok i will when I get back to my computer I will tell you once ive finished thanks for your hekp
Thanks, and you are welcome

nathaniel00012 wrote:

First I export my SVG, and then import it into the editor, it's off the original position from when I exported it. This also happens on the backpack, as well as Scratch Desktop.

Does it happen with other SVG? Can you follow the steps to import it into a list and share the project?
aeroza-
New Scratcher
5 posts

SVG Import

I'm not sure if this will work for you, but usually when I import an 'SVG' file from ‘Inkscape’, I go to the 'Costumes' menu, select the partial image file and move it ever so slightly. It usually pops up on the stage after this.

If you do use 'Inkscape' to create vector images, try converting the image from 'Object to Path' in the menu. This usually gives me good results.

Ever since Scratch 3.0, vector graphics has had its quirks; hopefully they can get fixed at some point.
dat_derp757
Scratcher
9 posts

SVG Import

minor-edit wrote:

Separately, try these steps:

Make a copy of the SVG file and open it in a text editor. Add
viewBox=“0 0 480 360”
to the first <svg> tag
<svg viewBox=“0 0 480 360”>
leaving other stuff in the tag already the way it is.
If a viewBox is already there, adjust the values to fit the stage dimensions.

Save as a text file and import.

(If that doesn't work and there is a width and height in the <svg> tag, try adjusting those down to a size within 480 by 360 while keeping them proportional to each other. Or remove them entirely.)
Woah

Last edited by dat_derp757 (Aug. 3, 2022 09:58:17)

AdrikTheDogLover
Scratcher
15 posts

SVG Import

nathaniel00012 wrote:

OS: Windows NT 10.0
Browser: Chrome 80.0.3987.100
First I export my SVG, and then import it into the editor, it's off the original position from when I exported it. This also happens on the backpack, as well as Scratch Desktop.
When i try importing a svg, it shows a question mark in front of a sort-of green background.
AdrikTheDogLover
Scratcher
15 posts

SVG Import

when [fard] key pressed
oduko
Scratcher
5 posts

SVG Import

wut
dog64scratch
Scratcher
4 posts

SVG Import

Everytime I want to convert to svg but all the websites are nothing so I tried to not convort to svg but just import it to scratch and it is bitmap so my map is in bitmap do you know how to convort to svg in scratch or … You know

Convort to [svg v]
RED-001-alt
Scratcher
1000+ posts

SVG Import

dog64scratch wrote:

Everytime I want to convert to svg but all the websites are nothing so I tried to not convort to svg but just import it to scratch and it is bitmap so my map is in bitmap do you know how to convort to svg in scratch or … You know

Convort to [svg v]
Please do not necropost or hijack the thread, make a new thread about this issue instead. Reporting to be closed.

Powered by DjangoBB