code: function parseQuality(rawQuality) {
    const defaultQuality = 100
    if (typeof rawQuality !== 'number') {
      return defaultQuality
    }
    const quality = parseInt(rawQuality)
    return quality > 0 && quality <= 100 ? quality : defaultQuality
  }
docs: Parse the target JPEG quality
  (Got from the CLI or the public API)