Mode

public enum Mode

The Mode parameter lets you output image never returns an error due to the specified crop (in safe) and preserves the center of an image while cropping (in smart).

  • Default mode for cropping an image.

    Declaration

    Swift

    case none
  • You can append the safe parameter when cropping an image.

    Declaration

    Swift

    case safe
  • You can also specify the smart parameter to crop a given image using content-aware algorithms

    Declaration

    Swift

    case smart