Discuss Scratch
- Discussion Forums
- » Bugs and Glitches
- » SVG Import
- GamingBoyRug
-
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
when I try to import my SVG file I can only see a quarter of it on screen
- minor-edit
-
500+ posts
SVG Import
Separately, try these steps:
Make a copy of the SVG file and open it in a text editor. Add
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.)
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
-
4 posts
SVG Import
Separately, try these steps:
Make a copy of the SVG file and open it in a text editor. AddviewBox=“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
-
500+ posts
SVG Import
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. Thanks that worked for the most part but the costume can no longer be edited whenever I edit it slightly it disappears
Steps
- make project with a list
- show list on stage
- right click, select “import”
- select the SVG file
- save and share project
- GamingBoyRug
-
4 posts
SVG Import
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. Thanks that worked for the most part but the costume can no longer be edited whenever I edit it slightly it disappears
Steps
- make project with a list
- show list on stage
- right click, select “import”
- select the SVG file
- 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
-
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.
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
-
500+ posts
SVG Import
Thanks, and you are welcome Ok i will when I get back to my computer I will tell you once ive finished thanks for your hekp
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-
-
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.
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
-
9 posts
SVG Import
Woah Separately, try these steps:
Make a copy of the SVG file and open it in a text editor. AddviewBox=“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 dat_derp757 (Aug. 3, 2022 09:58:17)
- AdrikTheDogLover
-
15 posts
SVG Import
When i try importing a svg, it shows a question mark in front of a sort-of green background. 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.
- dog64scratch
-
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
-
1000+ posts
SVG Import
Please do not necropost or hijack the thread, make a new thread about this issue instead. Reporting to be closed. 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 knowConvort to [svg v]
- Discussion Forums
- » Bugs and Glitches
-
» SVG Import