This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2010-08-05 21:36:22

Blade-Edge
Scratcher
Registered: 2009-06-13
Posts: 1000+

Converting sprites to images

Can a sprite be converted into an image?
And I have a few more questions
If I import a background image into scratch that's larger then the scratch screen, will it crop or stretch to fit?


http://img29.imageshack.us/img29/5145/scratchycat.gif CLASSY

Offline

 

#2 2010-08-05 21:39:44

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: Converting sprites to images

Blade-Edge wrote:

Can a sprite be converted into an image?

yes, right click the costume you want as and image and click 'export this costume' and it will save it as a .gif for you.

And I have a few more questions
If I import a background image into scratch that's larger then the scratch screen, will it crop or stretch to fit?

yes, it shrinks to fit in place.


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#3 2010-08-05 21:43:22

Blade-Edge
Scratcher
Registered: 2009-06-13
Posts: 1000+

Re: Converting sprites to images

Ah, I see. Will the quality also be horribly ruined if it's way bigger then the screen?
Also, that costume exporting turns it into a .sprite file for me
I haven't really looked at them, so it may or may not be usable anywhere besides Scratch


http://img29.imageshack.us/img29/5145/scratchycat.gif CLASSY

Offline

 

#4 2010-08-05 21:46:29

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Converting sprites to images

Blade-Edge wrote:

Ah, I see. Will the quality also be horribly ruined if it's way bigger then the screen?
Also, that costume exporting turns it into a .sprite file for me
I haven't really looked at them, so it may or may not be usable anywhere besides Scratch

It should work fine... Just make sure you're exporting the costume (right-click the costume and select "export") and it should export as a GIF.

Offline

 

#5 2010-08-05 21:56:09

Blade-Edge
Scratcher
Registered: 2009-06-13
Posts: 1000+

Re: Converting sprites to images

So, that would means I would have to do each one individually.  hmm


http://img29.imageshack.us/img29/5145/scratchycat.gif CLASSY

Offline

 

#6 2010-08-05 21:56:47

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Converting sprites to images

Blade-Edge wrote:

So, that would means I would have to do each one individually.  hmm

Yes, unfortunately.

Offline

 

#7 2010-08-05 22:49:40

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Converting sprites to images

As for backgrounds, I'd recommend using an external image editor to crop and resize your background to your liking and to the Scratch window's exact resolution. That way, Scratch won't mess with the image unless you're really unlucky. And you should probably save the background as a bitmap (.bmp) file so you don't have to worry about the image getting compressed before you add it to the project.


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#8 2010-08-05 23:03:30

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Converting sprites to images

Harakou wrote:

As for backgrounds, I'd recommend using an external image editor to crop and resize your background to your liking and to the Scratch window's exact resolution. That way, Scratch won't mess with the image unless you're really unlucky. And you should probably save the background as a bitmap (.bmp) file so you don't have to worry about the image getting compressed before you add it to the project.

Ah, yes, good point. Keep in mind that the Scratch stage size is exactly 360x480 when doing this  smile

Offline

 

#9 2010-08-06 02:38:26

Ace-of-Spades
Scratcher
Registered: 2010-01-08
Posts: 1000+

Re: Converting sprites to images

It doesn't scale it to fit, it shrinks it down proportionately, most of the time ruining the image entirely.


11110010100011010100011010101000100011011011001010111100101000110101000110101010001000110110110010101111001010001101010001101010100010001101101100101011110010100011010100011010101000100011011011001010
110101010010001010101010101010101010101010100110101010010101010010101001101011010101010010101010101

Offline

 

#10 2010-08-06 07:50:25

Blade-Edge
Scratcher
Registered: 2009-06-13
Posts: 1000+

Re: Converting sprites to images

Thanks for that, Ace
Well... this sucks

And I can never remember the scratch screen dimensions
Every time I work on a background outside of Scratch, I have to ask my brother the dimensions
Is there an easier way to remember this?


http://img29.imageshack.us/img29/5145/scratchycat.gif CLASSY

Offline

 

#11 2010-08-06 07:59:47

colorfusion
Scratcher
Registered: 2009-10-03
Posts: 500+

Re: Converting sprites to images

There is just the normal memory techniques really.
There is also the fact that 360 is a full circle.
And the fact there is 172800 pixels.

You could also just look at the stage costume size, under the name it says how big it is.

Last edited by colorfusion (2010-08-06 08:01:21)

Offline

 

#12 2010-08-06 09:02:32

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Converting sprites to images

What I do is I move the mouse of the top-right corner of the stage, round the x and y position of the mouse to the nearest 10 (to make sure it's exactly in the corner), and multiply by two.

It's flawless.

Offline

 

#13 2010-08-06 11:55:03

Locomule
Scratcher
Registered: 2009-08-24
Posts: 500+

Re: Converting sprites to images

To recall the dimensions click on the Stage and look at any costume in the costume list, the dimensions are always there.

And I recommend Irfanview for external image editing. It is GREAT at resizing, easy to use, and free!

Last edited by Locomule (2010-08-06 11:55:21)


aka Pain from DragonSpires, Delrith Online, BotBattle, Urban Dead etc etc lol

Offline

 

#14 2010-08-06 21:30:46

Ace-of-Spades
Scratcher
Registered: 2010-01-08
Posts: 1000+

Re: Converting sprites to images

These last 3 are all good answers, but he said when working on a background outside of the Scratch Program  tongue

It's 3 down and 4 across, both multiplied by 120. Remember 120 as the magic number, and 4 by 3 as the other magic numbers to multiply it by.


11110010100011010100011010101000100011011011001010111100101000110101000110101010001000110110110010101111001010001101010001101010100010001101101100101011110010100011010100011010101000100011011011001010
110101010010001010101010101010101010101010100110101010010101010010101001101011010101010010101010101

Offline

 

#15 2010-08-06 22:23:30

Blade-Edge
Scratcher
Registered: 2009-06-13
Posts: 1000+

Re: Converting sprites to images

I'd rather just keep asking my brother
It's okay to annoy him
I'll post later when I remember what other questions I had


http://img29.imageshack.us/img29/5145/scratchycat.gif CLASSY

Offline

 

#16 2010-08-06 22:41:54

Locomule
Scratcher
Registered: 2009-08-24
Posts: 500+

Re: Converting sprites to images

I keep a .rtf (text) file on my desktop with basic Scratch nfo (like those dimensions) in it. As I work on new projects, I add specific information about each one to the bottom of the file.


aka Pain from DragonSpires, Delrith Online, BotBattle, Urban Dead etc etc lol

Offline

 

#17 2010-08-07 01:14:31

Ace-of-Spades
Scratcher
Registered: 2010-01-08
Posts: 1000+

Re: Converting sprites to images

Locomule wrote:

I keep a .rtf (text) file on my desktop with basic Scratch info (like those dimensions) in it. As I work on new projects, I add specific information about each one to the bottom of the file.

Oh that's a great idea.

(I just memorize it though, but doing it could be useful to other people)


11110010100011010100011010101000100011011011001010111100101000110101000110101010001000110110110010101111001010001101010001101010100010001101101100101011110010100011010100011010101000100011011011001010
110101010010001010101010101010101010101010100110101010010101010010101001101011010101010010101010101

Offline

 

Board footer