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

GIF loading problem solution proposal #329

Open
Cybertwip opened this issue Dec 8, 2021 · 0 comments
Open

GIF loading problem solution proposal #329

Cybertwip opened this issue Dec 8, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@Cybertwip
Copy link

Cybertwip commented Dec 8, 2021

Describe the bug
Looks like fastgif doesn't decode properly some gifs.

Try to load this gif:

https://gifimage.net/wp-content/uploads/2017/08/sonic-running-gif-6.gif

Something like

import { parseGIF, decompressFrames } from 'gifuct-js'

tempCtx.clearRect(0, 0, tempCanvas.width, tempCanvas.height);

var dims = frame.dims
var frameImageData = tempCtx.createImageData(dims.width, dims.height)
frameImageData.data.set(frame.patch)
tempCtx.putImageData(frameImageData, dims.left, dims.top)


Might solve it.

To Reproduce
Steps to reproduce the behavior:

  1. Just try to load transparent gifs.
@Cybertwip Cybertwip added the bug Something isn't working label Dec 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant