Isaiah Odhner

Results 273 comments of Isaiah Odhner
trafficstars

You can create a link with `document.createElement("a")`, `setAttribute("target", "_blank")` and call `click()` on it during a gesture event like another click (but it can be on a button for instance)....

https://github.com/jnordberg/gif.js/pull/46

GIF viewers have a minimum delay below which it will default to a longer delay. Try increasing the delay to 20ms.

I don't know. If you play around with the delay, can you find a point at which decreasing the delay stops making it faster? Also, if you only need a...

`addFrame` accepts [`Image`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/Image) objects (and canvases or canvas contexts), not URLs as strings. Here's an example of loading images: ```js // function to retrieve an image function loadImage(url) { return...

Are you looking for an interface for playing back GIFs as video? You may be interested in one of these libraries: - https://github.com/buzzfeed/libgif-js - https://github.com/CaptainCodeman/gif-player - https://github.com/geelen/x-gif or perhaps you...

You need to use the `workerScript` option to point to a path where the `gif.worker.js` is served. Create React App *loves* to serve `index.html`, it does it any time it...

An `Image` has to load (even though it's a data URL), which would introduce asynchronous behavior. You should be able to pass in the `ImageData` objects directly, with no `res_c`/`res_ctx`...

I'm not sure I understand the problem. Are you assuming you need to pass the image data in the same way for all frames? You should be able to add...

A security error means the canvas is being [tainted](https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image). > images are visible to both eye & code They can be visible to the eye and to some code, but...