Initial commit

This commit is contained in:
Developer
2025-04-21 16:03:20 +02:00
commit 2832896157
22874 changed files with 3092801 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
#!/usr/bin/env node
'use strict';
var spawn = require('child_process').spawn;
var gifsicle = require('./');
var input = process.argv.slice(2);
spawn(gifsicle, input, {stdio: 'inherit'})
.on('exit', process.exit);

View File

@@ -0,0 +1,2 @@
'use strict';
module.exports = require('./lib').path();

View File

@@ -0,0 +1,17 @@
'use strict';
var path = require('path');
var BinWrapper = require('bin-wrapper');
var pkg = require('../package.json');
var url = 'https://raw.githubusercontent.com/imagemin/gifsicle-bin/v' + pkg.version + '/vendor/';
module.exports = new BinWrapper()
.src(url + 'macos/gifsicle', 'darwin')
.src(url + 'linux/x86/gifsicle', 'linux', 'x86')
.src(url + 'linux/x64/gifsicle', 'linux', 'x64')
.src(url + 'freebsd/x86/gifsicle', 'freebsd', 'x86')
.src(url + 'freebsd/x64/gifsicle', 'freebsd', 'x64')
.src(url + 'win/x86/gifsicle.exe', 'win32', 'x86')
.src(url + 'win/x64/gifsicle.exe', 'win32', 'x64')
.dest(path.join(__dirname, '../vendor'))
.use(process.platform === 'win32' ? 'gifsicle.exe' : 'gifsicle');

View File

@@ -0,0 +1,34 @@
'use strict';
var BinBuild = require('bin-build');
var log = require('logalot');
var bin = require('./');
bin.run(['--version'], function (err) {
if (err) {
log.warn(err.message);
log.warn('gifsicle pre-build test failed');
log.info('compiling from source');
var cfg = [
'./configure --disable-gifview --disable-gifdiff',
'--prefix="' + bin.dest() + '" --bindir="' + bin.dest() + '"'
].join(' ');
var builder = new BinBuild()
.src('https://github.com/kohler/gifsicle/archive/v1.88.tar.gz')
.cmd('autoreconf -ivf')
.cmd(cfg)
.cmd('make install');
return builder.run(function (err) {
if (err) {
log.error(err.stack);
return;
}
log.success('gifsicle built successfully');
});
}
log.success('gifsicle pre-build test passed successfully');
});

View File

@@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) imagemin
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

View File

@@ -0,0 +1,91 @@
{
"_from": "gifsicle@^3.0.0",
"_id": "gifsicle@3.0.4",
"_inBundle": false,
"_integrity": "sha1-9Fy17RAWW2ZdySng6TKLbIId+js=",
"_location": "/gifsicle",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "gifsicle@^3.0.0",
"name": "gifsicle",
"escapedName": "gifsicle",
"rawSpec": "^3.0.0",
"saveSpec": null,
"fetchSpec": "^3.0.0"
},
"_requiredBy": [
"/imagemin-gifsicle"
],
"_resolved": "https://registry.npmjs.org/gifsicle/-/gifsicle-3.0.4.tgz",
"_shasum": "f45cb5ed10165b665dc929e0e9328b6c821dfa3b",
"_spec": "gifsicle@^3.0.0",
"_where": "D:\\developments\\teaser-inertia\\nova-components\\NovaLeader\\node_modules\\imagemin-gifsicle",
"author": {
"name": "Kevin Martensson",
"email": "kevinmartensson@gmail.com",
"url": "github.com/kevva"
},
"bin": {
"gifsicle": "cli.js"
},
"bugs": {
"url": "https://github.com/imagemin/gifsicle-bin/issues"
},
"bundleDependencies": false,
"dependencies": {
"bin-build": "^2.0.0",
"bin-wrapper": "^3.0.0",
"logalot": "^2.0.0"
},
"deprecated": false,
"description": "gifsicle wrapper that makes it seamlessly available as a local dependency",
"devDependencies": {
"bin-check": "^2.0.0",
"compare-size": "^1.0.0",
"mkdirp": "^0.5.0",
"mocha": "^2.2.4",
"rimraf": "^2.3.2",
"xo": "*"
},
"engines": {
"node": ">=0.10.0"
},
"files": [
"index.js",
"cli.js",
"lib"
],
"homepage": "https://github.com/imagemin/gifsicle-bin#readme",
"keywords": [
"gif",
"img",
"image",
"compress",
"minify",
"optimize"
],
"license": "MIT",
"maintainers": [
{
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
{
"name": "Shinnosuke Watanabe",
"url": "github.com/shinnn"
}
],
"name": "gifsicle",
"repository": {
"type": "git",
"url": "git+https://github.com/imagemin/gifsicle-bin.git"
},
"scripts": {
"postinstall": "node lib/install.js",
"test": "xo && mocha --timeout 50000"
},
"version": "3.0.4"
}

View File

@@ -0,0 +1,38 @@
# gifsicle-bin [![Build Status](https://travis-ci.org/imagemin/gifsicle-bin.svg?branch=master)](https://travis-ci.org/imagemin/gifsicle-bin)
> gifsicle manipulates GIF image files in many different ways. Depending on command line options, it can merge several GIFs into a GIF animation; explode an animation into its component frames; change individual frames in an animation; turn interlacing on and off; add transparency and much more.
## Install
```
$ npm install --save gifsicle
```
## Usage
```js
const {execFile} = require('child_process');
const gifsicle = require('gifsicle');
execFile(gifsicle, ['-o', 'output.gif', 'input.gif'], err => {
console.log('Image minified!');
});
```
## CLI
```
$ npm install --global gifsicle
```
```
$ gifsicle --help
```
## License
MIT © [imagemin](https://github.com/imagemin)

Binary file not shown.