mirror of https://gitgud.io/fatchan/gm
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
383 B
22 lines
383 B
12 years ago
|
|
||
|
var assert = require('assert')
|
||
|
|
||
|
module.exports = function (gm, dir, finish, GM) {
|
||
|
if (gm._options.imageMagick) return finish();
|
||
|
|
||
|
var m = gm
|
||
|
.minify();
|
||
|
|
||
|
var args = m.args();
|
||
|
assert.equal('convert', args[0]);
|
||
|
assert.equal('-minify', args[1]);
|
||
|
|
||
|
if (!GM.integration)
|
||
|
return finish();
|
||
|
|
||
|
m
|
||
|
.write(dir + '/minify.png', function minify (err) {
|
||
|
finish(err);
|
||
|
});
|
||
|
}
|