Discuss Scratch

Robotron3000
Scratcher
100+ posts

GIF decoding?

There's this Superman .gif that I wanted to put in my project, but every time I try to upload it, I get a message saying “Sorry, Scratch was unable to decode (the gif)” Is there a way to decode the gif so I can put it in my project?

My browser / operating system: Windows 8.1, Chrome 54.0.2840.71, Flash 23.0 (release 0)
PlaneCrash
Scratcher
100+ posts

GIF decoding?

Basically, all you need to do with .gif files is explode them and upload them as individual frames.Then you can use a script like this:
when green flag clicked
forever
next costume
wait (0.2) secs
end

You can use the tool here to achieve this task.

You really only need to do this with larger gifs or when you get an error like this. You will need to configure the speed, order of frames, and other things to reconstruct the .gif in Scratch.

Last edited by PlaneCrash (Nov. 8, 2016 02:02:48)





amylaser
Scratcher
500+ posts

GIF decoding?

PlaneCrash wrote:

Basically, all you need to do with .gif files is explode them and upload them as individual frames.Then you can use a script like this:
when green flag clicked
forever
next costume
wait (0.2) secs
end

You can use the tool here to achieve this task.

You really only need to do this with larger gifs or when you get an error like this. You will need to configure the speed, order of frames, and other things to reconstruct the .gif in Scratch.

No no no, you do not need to upload the frames individually! You can upload any GIF (that does not exceed the data limits of the Scratch project, which can be no more than 50 MB total, including scripts, sprites, and other assets) and Scratch will automatically assign each frame of the GIF to a sprite costume. In order.

But since you are having trouble uploading a GIF, it seems that your file was too large. Try splitting it into smaller chunks that you can upload separately.

Last edited by amylaser (Nov. 8, 2016 04:36:42)


Art, Animations, and Games!


~click one to check it out~
PlaneCrash
Scratcher
100+ posts

GIF decoding?

amylaser wrote:

PlaneCrash wrote:

Basically, all you need to do with .gif files is explode them and upload them as individual frames.Then you can use a script like this:
when green flag clicked
forever
next costume
wait (0.2) secs
end

You can use the tool here to achieve this task.

You really only need to do this with larger gifs or when you get an error like this. You will need to configure the speed, order of frames, and other things to reconstruct the .gif in Scratch.

No no no, you do not need to upload the frames individually! You can upload any GIF (that does not exceed the data limits of the Scratch project, which can be no more than 50 MB total, including scripts, sprites, and other assets) and Scratch will automatically assign each frame of the GIF to a sprite costume. In order.

But since you are having trouble uploading a GIF, it seems that your file was too large. Try splitting it into smaller chunks that you can upload separately.

Basically, that's all I was saying. You need to split the .gif into smaller parts to upload. I'm sure if you do a search online you'll find something to do this. Like amylaser stated, it would be unnecessary to go to the length of individual frame splitting.

I hope this helped
-PlaneCrash

Last edited by PlaneCrash (Nov. 8, 2016 12:54:40)





Robotron3000
Scratcher
100+ posts

GIF decoding?

amylaser wrote:

PlaneCrash wrote:

Basically, all you need to do with .gif files is explode them and upload them as individual frames.Then you can use a script like this:
when green flag clicked
forever
next costume
wait (0.2) secs
end

You can use the tool here to achieve this task.

You really only need to do this with larger gifs or when you get an error like this. You will need to configure the speed, order of frames, and other things to reconstruct the .gif in Scratch.

No no no, you do not need to upload the frames individually! You can upload any GIF (that does not exceed the data limits of the Scratch project, which can be no more than 50 MB total, including scripts, sprites, and other assets) and Scratch will automatically assign each frame of the GIF to a sprite costume. In order.

But since you are having trouble uploading a GIF, it seems that your file was too large. Try splitting it into smaller chunks that you can upload separately.


Well, actually the file size was something like 4.7 Mega Bytes, so probably not the total.

Powered by DjangoBB