code: function getCropper(name) {
    // See http://sharp.dimens.io/en/stable/api-resize/#crop
    //
    // Possible attributes of sharp.gravity are north, northeast, east, southeast, south,
    // southwest, west, northwest, center and centre.
    if (sharp.gravity[name] !== undefined) {
      return sharp.gravity[name];
    }
    // The experimental strategy-based approach resizes so one dimension is at its target
    // length then repeatedly ranks edge regions, discarding the edge with the lowest
    // score based on the selected strategy.
    // - entropy: focus on the region with the highest Shannon entropy.
    // - attention: focus on the region with the highest luminance frequency,
    //   colour saturation and presence of skin tones.
    if (sharp.strategy[name] !== undefined) {
      return sharp.strategy[name];
    }
  
    throw new UsageError(
      `"${name}" is not a valid crop value. Consult http://sharp.dimens.io/en/stable/api-resize/#crop`
    );
  }
docs: Get a cropper constant from sharp.
  
  @param {string} name
  @return {string}