Discuss Scratch

jfmateos
Scratcher
8 posts

Howto: Import gif with transparency in Scratch 2.0

Trying to import gif images with trasnparent background to Scratch 2.0 always result in a white background (this dindn´t happen in Scrath 1.4).

A workaround using GIMP is duplicating the image in a second layer and then export to GIF as animation and selecting “One frame per layer(replace)” in the options dialog box.

This way Scratch will import 2 costumes, the first with the white background and the second without it… just ignore the first one or delete it.
MegaApuTurkUltra
Scratcher
1000+ posts

Howto: Import gif with transparency in Scratch 2.0

jfmateos wrote:

Trying to import gif images with trasnparent background to Scratch 2.0 always result in a white background (this dindn´t happen in Scrath 1.4).

A workaround using GIMP is duplicating the image in a second layer and then export to GIF as animation and selecting “One frame per layer(replace)” in the options dialog box.

This way Scratch will import 2 costumes, the first with the white background and the second without it… just ignore the first one or delete it.
Ah nice trick! I've been using folders of pngs to batch import transparent costumes.

$(".box-head")[0].textContent = "committing AT crimes since $whenever"

Powered by DjangoBB