{"versions":{"0.1.5":{"name":"gif.js","version":"0.1.5","description":"JavaScript GIF encoding library","author":{"name":"Johan Nordberg","email":"code@johan-nordberg.com"},"main":"index.js","repository":{"type":"git","url":"https://github.com/jnordberg/gif.js.git"},"devDependencies":{"commonjs-everywhere":"~0.9.4"},"scripts":{"prepublish":"./bin/build"},"browser":"./dist/gif.js","keywords":["gif","animation","encoder"],"license":"MIT","bugs":{"url":"https://github.com/jnordberg/gif.js/issues"},"_id":"gif.js@0.1.5","dist":{"shasum":"a1f898658a780a3e4cdfde41149b45802a91f16a","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/gif.js/-/gif.js-0.1.5.tgz","size":2841820,"integrity":"sha512-BPFi5zo1Kgu5rG2iPNITyi2p29N0WqEvQ/3bQ4TilpFPdtzcZQi5xB540dkxrDBSptFohEzmr8YylS00hBNrHQ=="},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"anonymous","email":"its@johan-nordberg.com"},"maintainers":[{"name":"anonymous","email":"its@johan-nordberg.com"}],"directories":{},"_cnpmcore_publish_time":"2021-12-22T01:55:35.907Z","contributors":[]},"0.1.6":{"name":"gif.js","version":"0.1.6","description":"JavaScript GIF encoding library","author":{"name":"Johan Nordberg","email":"code@johan-nordberg.com"},"main":"index.js","repository":{"type":"git","url":"https://github.com/jnordberg/gif.js.git"},"devDependencies":{"commonjs-everywhere":"~0.9.4"},"scripts":{"prepublish":"./bin/build"},"browser":"./dist/gif.js","keywords":["gif","animation","encoder"],"license":"MIT","bugs":{"url":"https://github.com/jnordberg/gif.js/issues"},"homepage":"https://github.com/jnordberg/gif.js","_id":"gif.js@0.1.6","dist":{"shasum":"a4b5e382a16fcd8fbeafe686384a47b92732cb18","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/gif.js/-/gif.js-0.1.6.tgz","size":2842063,"integrity":"sha512-zydv1HlDG00UZ7M4dy4eKGa1zMOamHbNtUwZpoRDThHPUaeLxhSpLBTv4CljtscrTvDSmzMhTnCG5dl4oWsvUw=="},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"anonymous","email":"its@johan-nordberg.com"},"maintainers":[{"name":"anonymous","email":"its@johan-nordberg.com"}],"directories":{},"_cnpmcore_publish_time":"2021-12-22T01:55:38.204Z","contributors":[]},"0.2.0":{"name":"gif.js","version":"0.2.0","description":"JavaScript GIF encoding library","author":{"name":"Johan Nordberg","email":"code@johan-nordberg.com"},"main":"index.js","repository":{"type":"git","url":"git+https://github.com/jnordberg/gif.js.git"},"devDependencies":{"browserify":"^13.1.1","coffeeify":"^2.1.0","exorcist":"^0.4.0","uglify-js":"^2.7.5"},"scripts":{"prepublish":"./bin/build"},"browser":"./dist/gif.js","keywords":["gif","animation","encoder"],"license":"MIT","gitHead":"55bdbfea897753787fd2f4efc62f144371351522","bugs":{"url":"https://github.com/jnordberg/gif.js/issues"},"homepage":"https://github.com/jnordberg/gif.js#readme","_id":"gif.js@0.2.0","_shasum":"615e6e3788850cd3a20c85fe9f09539e784903e8","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.5.0","_npmUser":{"name":"anonymous","email":"code@johan-nordberg.com"},"maintainers":[{"name":"anonymous","email":"its@johan-nordberg.com"}],"dist":{"shasum":"615e6e3788850cd3a20c85fe9f09539e784903e8","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/gif.js/-/gif.js-0.2.0.tgz","size":2849663,"integrity":"sha512-bYxCoT8OZKmbxY8RN4qDiYuj4nrQDTzgLRcFVovyona1PTWNePzI4nzOmotnlOFIzTk/ZxAHtv+TfVLiBWj/hw=="},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/gif.js-0.2.0.tgz_1481053872634_0.6183231212198734"},"directories":{},"_cnpmcore_publish_time":"2021-12-22T01:55:38.446Z","contributors":[]}},"dist-tags":{"latest":"0.2.0"},"name":"gif.js","time":{"created":"2022-01-26T21:13:18.666Z","modified":"2023-08-06T15:22:08.398Z","0.1.5":"2013-11-12T03:29:03.896Z","0.1.6":"2014-04-13T00:38:06.607Z","0.2.0":"2016-12-06T19:51:15.888Z"},"readme":"# gif.js\n\nJavaScript GIF encoder that runs in your browser.\n\nUses typed arrays and web workers to render each frame in the background, it's really fast!\n\n**Demo** - http://jnordberg.github.io/gif.js/\n\nWorks in browsers supporting: [Web Workers](http://www.w3.org/TR/workers/), [File API](http://www.w3.org/TR/FileAPI/) and [Typed Arrays](https://www.khronos.org/registry/typedarray/specs/latest/)\n\n\n## Usage\n\nInclude `gif.js` found in `dist/` in your page. Also make sure to have `gif.worker.js` in the same location.\n\n```javascript\nvar gif = new GIF({\n  workers: 2,\n  quality: 10\n});\n\n// add an image element\ngif.addFrame(imageElement);\n\n// or a canvas element\ngif.addFrame(canvasElement, {delay: 200});\n\n// or copy the pixels from a canvas context\ngif.addFrame(ctx, {copy: true});\n\ngif.on('finished', function(blob) {\n  window.open(URL.createObjectURL(blob));\n});\n\ngif.render();\n\n```\n\n## Options\n\nOptions can be passed to the constructor or using the `setOptions` method.\n\n| Name         | Default         | Description                                        |\n| -------------|-----------------|----------------------------------------------------|\n| repeat       | `0`             | repeat count, `-1` = no repeat, `0` = forever      |\n| quality      | `10`            | pixel sample interval, lower is better             |\n| workers      | `2`             | number of web workers to spawn                     |\n| workerScript | `gif.worker.js` | url to load worker script from                     |\n| background   | `#fff`          | background color where source image is transparent |\n| width        | `null`          | output image width                                 |\n| height       | `null`          | output image height                                |\n| transparent  | `null`          | transparent hex color, `0x00FF00` = green          |\n| dither       | `false`         | dithering method, e.g. `FloydSteinberg-serpentine` |\n| debug        | `false`         | whether to print debug information to console      |\n\nIf width or height is `null` image size will be deteremined by first frame added.\n\nAvailable dithering methods are:\n\n * `FloydSteinberg`\n * `FalseFloydSteinberg`\n * `Stucki`\n * `Atkinson`\n\nYou can add `-serpentine` to use serpentine scanning, e.g. `Stucki-serpentine`.\n\n### addFrame options\n\n| Name         | Default         | Description                                        |\n| -------------|-----------------|----------------------------------------------------|\n| delay        | `500`           | frame delay                                        |\n| copy         | `false`         | copy the pixel data                                |\n\n\n## Acknowledgements\n\ngif.js is based on:\n\n * [Kevin Weiner's Animated gif encoder classes](http://www.fmsware.com/stuff/gif.html)\n * [Neural-Net color quantization algorithm by Anthony Dekker](http://members.ozemail.com.au/~dekker/NEUQUANT.HTML)\n * [Thibault Imbert's as3gif](https://code.google.com/p/as3gif/)\n\nDithering code contributed by @PAEz and @panrafal\n\n\n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2013 Johan Nordberg\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.","users":{}}