Skip to content
This repository has been archived by the owner on Jan 24, 2021. It is now read-only.

Disposal method 3 is not implemented #17

Open
james090500 opened this issue Dec 2, 2020 · 0 comments · May be fixed by #18
Open

Disposal method 3 is not implemented #17

james090500 opened this issue Dec 2, 2020 · 0 comments · May be fixed by #18

Comments

@james090500
Copy link

james090500 commented Dec 2, 2020

Some GIF's give this error when trying to decode. I have attached a broken GIF and a working GIF

WORKING - WORKING
BROKEN - BROKEN

Source of error: https://github.com/stil/gif-endec/blob/master/src/Renderer.php#L66-L73
Code Example

            $gifStream = new FileStream($uploadedFile);
            $gifDecoder = new Decoder($gifStream);
            $gifRenderer = new Renderer($gifDecoder);

            $gifRenderer->start(function(FrameRenderedEvent $event) use (&$frames) {
                $frames[] = $event->renderedFrame;
            });

The error from laravel

    "message": "Disposal method 3 is not implemented.",
    "exception": "RuntimeException",
    "file": "C:\\wamp64\\www\\minecraftcapes\\vendor\\stil\\gif-endec\\src\\Renderer.php",
    "line": 72,
@james090500 james090500 linked a pull request Dec 2, 2020 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant