Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transparency Bug #40

Open
savaonepunch opened this issue Mar 25, 2022 · 2 comments
Open

Transparency Bug #40

savaonepunch opened this issue Mar 25, 2022 · 2 comments

Comments

@savaonepunch
Copy link

savaonepunch commented Mar 25, 2022

Im trying to create gifs into jimp images then back into gifs. It works fine on some gifs but on some i get this weird bug: https://imgur.com/a/IlRYSLG

This is how I'm doing it:

GifUtil.read(file).then(inputGif => {
    inputGif.frames.forEach((frame, i) => {
        // create a Jimp containing a clone of the frame bitmap
        jimpCopied = GifUtil.copyAsJimp(Jimp, frame);

        Promise.all([jimpCopied, maskP]).then(function(images) {
            var lenna = images[0];
            //var mask = images[1];

            //lenna
            //.greyscale()
            //.mask(mask, 0, 0);
            const fCopied = new GifFrame(new BitmapImage(lenna.bitmap))
            frames.push(fCopied);
            GifUtil.write("my-creation.gif", frames, {
                loops: 0
            }).then(gif => {
                console.log("written");
            });

        });

    })

})

Sorry if its some limitation i missed.

@savaonepunch
Copy link
Author

savaonepunch commented Mar 25, 2022

Sorry, duplicate report because i thought my first one didn't go through.

[EDIT]: Reopened because my first issue didn't actually go through.

@hisRoyalty
Copy link

same here, having same issues as above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants