INNER CODE UNIT · JavaScript

gifify

vvo/gifify · index.js:10

function gifify(streamOrFile, opts) {
  opts = opts || {};
  if (typeof streamOrFile === 'string') {
    opts.inputFilePath = streamOrFile;
  }

  if (opts.fps === undefined) {
    opts.fps = 10;
  }

  if (opts.speed === undefined) {
    opts.speed = 1;
  }

  if (opts.colors === undefined) {
    opts.colors = 80;
  }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…