INNER CODE UNIT · JavaScript

computeGifsicleArgs

vvo/gifify · index.js:169

function computeGifsicleArgs(opts) {
  // Gifsicle options
  // http://www.lcdf.org/gifsicle/man.html
  // --lossy is not yet into master, https://github.com/kohler/gifsicle/pull/16
  var args = [
    '-O3',
    '--lossy=' + opts.compress * 2,
    '--colors=' + opts.colors,
    '--delay', Math.round(100 / opts.fps / opts.speed),
    '--no-warnings'
  ];

  if (opts.loop === false) {
    args.push('--no-loopcount');
  }

  debug('gifsicle args: %j', args);

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…