Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Help Needed with Importing Images
- Team_Illuminati
-
Scratcher
27 posts
Help Needed with Importing Images
Hello Scratch! I need help to import a vector file into Scratch. It's a .svg file and Scratch keeps crashing before uploading it. The svg is 3.3 mb large so that might be the problem. If anyone could confirm my supsicions, that would be great.
- asivi
-
Scratcher
1000+ posts
Help Needed with Importing Images
I suspect it isn't a true vector image, its size is too big for a real vector drawing.
- Icecream95
-
Scratcher
19 posts
Help Needed with Importing Images
This might be the easiest solution:
First, create a vector costume and make a text box with something like Replace Me in it.
Then, go to the File menu and click Download to my computer
Go to your Downloads folder and select the file you just downloaded (it should be called something like MyProjectName possibly with .sb2 on the end).
If you don't see .sb2 on the end you will have to search the file view settings for something like Show file extensions and select it (or deselect it is it is already selected). In Windows 10 go to the view pane of file explorer, select Options which should be on the right, go to the View tab and deselect Hide extensions for known file types.
Rename the file and replace the .sb2 with .zip. Create a new folder and extract the project to the folder.
Click on each .svg file and when you find one with what you typed into your costume earlier. Find the large .svg, copy it to the project folder you made and replace the first .svg you found (something like 0.svg) with it.
Select everything in the project folder and put it back into a zip file (on windows it will be in the Share ribbon)
Rename the .zip file back to .sb2
Finally, go back to the file menu in Scratch and select Upload from my computer. Select the new .sb2 and you're done!
First, create a vector costume and make a text box with something like Replace Me in it.
Then, go to the File menu and click Download to my computer
Go to your Downloads folder and select the file you just downloaded (it should be called something like MyProjectName possibly with .sb2 on the end).
If you don't see .sb2 on the end you will have to search the file view settings for something like Show file extensions and select it (or deselect it is it is already selected). In Windows 10 go to the view pane of file explorer, select Options which should be on the right, go to the View tab and deselect Hide extensions for known file types.
Rename the file and replace the .sb2 with .zip. Create a new folder and extract the project to the folder.
Click on each .svg file and when you find one with what you typed into your costume earlier. Find the large .svg, copy it to the project folder you made and replace the first .svg you found (something like 0.svg) with it.
Select everything in the project folder and put it back into a zip file (on windows it will be in the Share ribbon)
Rename the .zip file back to .sb2
Finally, go back to the file menu in Scratch and select Upload from my computer. Select the new .sb2 and you're done!

- Icecream95
-
Scratcher
19 posts
Help Needed with Importing Images
I suspect it isn't a true vector image, its size is too big for a real vector drawing.I agree, it is probably a normal image in a .svg file
- asivi
-
Scratcher
1000+ posts
Help Needed with Importing Images
Not sure, perhaps what they did is to remame the file extension…I suspect it isn't a true vector image, its size is too big for a real vector drawing.I agree, it is probably a normal image in a .svg file
- footsocktoe
-
Scratcher
1000+ posts
Help Needed with Importing Images
Hello Scratch! I need help to import a vector file into Scratch. It's a .svg file and Scratch keeps crashing before uploading it. The svg is 3.3 mb large so that might be the problem. If anyone could confirm my supsicions, that would be great.
Open the file with Notepad. Can't do it? It's not an svg file.
A true svg file is a text file containing lots of numbers and words like path, stroke, fill, transform, matrix.
- Team_Illuminati
-
Scratcher
27 posts
Help Needed with Importing Images
It's an svg file for sure (I've opened it in svg editors such as Adobe.) Thanks for helping. I'll probably do @Icecream95 advice. Thanks!
- footsocktoe
-
Scratcher
1000+ posts
Help Needed with Importing Images
It's an svg file for sure (I've opened it in svg editors such as Adobe.) Thanks for helping. I'll probably do @Icecream95 advice. Thanks!
If you have Adobe Illustrator then you have an easy way to make your svg acceptable to Scratch. Open it in Illustrator and export it as an svg with this setting…
SVG 11 Tiny +
I've been told Illustrator files saved that way will work in Scratch.
- Team_Illuminati
-
Scratcher
27 posts
Help Needed with Importing Images
Cool. Unfortunately I used the free version of Adobe Illustrator (Inkscape, which BTW is AMAZING). I'll check if that option is available. Thanks! 

- Team_Illuminati
-
Scratcher
27 posts
Help Needed with Importing Images
I realized my problem: I had a corrupted file.
Luckily, I was able to recreate it but now it says Scratch had an error decoding it. I realized this was because it was written in svg 1.0, not svg 2.0 (which are apparently very different.) I tried to search the web to try to find a converter, but I found nothing. If someone who knows this stuff and would be willing to help, that would be great. Thanks! 
Luckily, I was able to recreate it but now it says Scratch had an error decoding it. I realized this was because it was written in svg 1.0, not svg 2.0 (which are apparently very different.) I tried to search the web to try to find a converter, but I found nothing. If someone who knows this stuff and would be willing to help, that would be great. Thanks! 
- footsocktoe
-
Scratcher
1000+ posts
Help Needed with Importing Images
I realized my problem: I had a corrupted file.Luckily, I was able to recreate it but now it says Scratch had an error decoding it. I realized this was because it was written in svg 1.0, not svg 2.0 (which are apparently very different.) I tried to search the web to try to find a converter, but I found nothing. If someone who knows this stuff and would be willing to help, that would be great. Thanks!
Scratch uses SVG Tiny 1.1
Do not convert to SVG 2.0
But if your file is in SVG 1.0, then it may need converting to SVG Tiny 1.1. I don't think there is a lot of difference between 1.0 and 1.1
Why don't you just open it in Inkscape and save it as an SVG Tiny 1.1 file?
- Team_Illuminati
-
Scratcher
27 posts
Help Needed with Importing Images
I'll do that. Thanks for the update!
- Discussion Forums
- » Help with Scripts
-
» Help Needed with Importing Images