diff --git a/History.md b/History.md new file mode 100644 index 0000000..7dac523 --- /dev/null +++ b/History.md @@ -0,0 +1,8 @@ + +0.1.0 / 2013-08-29 +================== + + * add auto delay + * add .rate option + * add garbage collection of tmpfiles + * use gm instead of gifsickle diff --git a/index.js b/index.js index 0771028..e684cb8 100644 --- a/index.js +++ b/index.js @@ -79,8 +79,8 @@ function gify(input, output, opts, fn) { cmd.push('-i', input); cmd.push('-filter:v', 'scale=' + scale); cmd.push('-r', String(rate)); - opts.start && cmd.push('-ss', String(opts.start)); - opts.duration && cmd.push('-t', String(opts.duration)); + if (opts.start) cmd.push('-ss', String(opts.start)); + if (opts.duration) cmd.push('-t', String(opts.duration)); cmd.push(tmp); cmd = escape(cmd);