code: function limitInputPixels (limit) {
    // if we pass in false we represent the integer as 0 to disable
    if (limit === false) {
      limit = 0;
    } else if (limit === true) {
      limit = Math.pow(0x3FFF, 2);
    }
    if (is.integer(limit) && limit >= 0) {
      this.options.limitInputPixels = limit;
    } else {
      throw is.invalidParameterError('limitInputPixels', 'integer', limit);
    }
    return this;
  }
docs: Do not process input images where the number of pixels (width x height) exceeds this limit.
  Assumes image dimensions contained in the input metadata can be trusted.
  The default limit is 268402689 (0x3FFF x 0x3FFF) pixels.
  @param {(Number|Boolean)} limit - an integral Number of pixels, zero or false to remove limit, true to use default limit.
  @returns {Sharp}
  @throws {Error} Invalid limit