Skip to content

Uploading gifs as costumes imports images in wrong order #5875

Open
alx-zhu/scratch-gui-codebb
#1
@BryceLTaylor

Description

@BryceLTaylor

Expected Behavior

If you import gifs as costumes for a sprite it should import the images in the same order as they appear in the gif.

Actual Behavior

The images appear out of order. We fixed this issue (#4509) for sprite upload, but when you upload a gif as a costume they appear out of order.

related to issues: #3541 and #3254

Steps to Reproduce

Upload a relatively large gif with fluid motion such as this one:
CoolGif
Import the gif as a sprite
Build this stack:
Screen Shot 2020-06-10 at 10 40 26 AM
Click the green flag
Note: the gif plays back smoothly
Now create a new empty sprite
Open the costumes tab
Choose Upload a costume
Choose the same gif
Add the same stack to this sprite
Click the green flag
Note: the gif jumps around because the images have come in out of order.

Here is a project I made to demonstrate, though to see the import behavior you will have to create a new one.

Operating System and Browser

Mac Chrome

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions