fastgif | fastgif , fast Web Assembly GIF decoder based on Wuffs | Binary Executable Format library
kandi X-RAY | fastgif Summary
kandi X-RAY | fastgif Summary
Requires WebAssembly support, aka modern Edge, Chrome, Safari or Firefox. Check first by looking for window.WebAssembly.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of fastgif
fastgif Key Features
fastgif Examples and Code Snippets
import {Decoder} from './node_modules/fastgif/fastgif.js';
const decoder = new Decoder();
window.fetch('path/to/gif.js')
.then((response) => response.arrayBuffer())
.then((buffer) => decoder.decode(buf))
.then((out) => {
Community Discussions
Trending Discussions on fastgif
QUESTION
I am developing a website where it's possible to provide a link to a transparent animated gif (often from giphy) and I want to render it (animated) on a canvas while keeping the transparency of the animated gif. This to be able to change the animation speed of the GIF.
I've tried using the following
fastgif
but only one out of thirty frames shows an image, the rest are completely transparent. Gifs without transparency works.gifuct-js
but the background is black and not transparent. I understood that gifuct provides a transparencyIndex but it doesn't show up when decoding the gif.
I've tried many different gifs, including ones that are not from giphy created with Photoshop and After Effects but to no result.
fastgif (where all
is the decoded gif fetched with fetch
)
ANSWER
Answered 2019-Aug-03 at 14:09Here's one solution I found that involves gifler and konvajs: https://konvajs.org/docs/sandbox/GIF_On_Canvas.html.
Update Here's a solution that includes the need for adjusting the delay (note the comment within the onDrawFrame
function.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install fastgif
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page