Filestack Documentation

Class Pixelate​Faces​Transform

public class PixelateFacesTransform: Transform  

Pixelates selected faces contained inside an image.

PixelateFacesTransform PixelateFacesTransform Transform Transform PixelateFacesTransform->Transform

Superclass

Transform

:nodoc:

Initializers

init()

public init()  

Initializes a PixelateFacesTransform object.

Methods

amount(_:​)

@discardableResult
    func amount(_ value: Int = 10) -> Self  

Adds amount option.

Parameters

value Int

Valid range: 2...100

type(_:​)

@discardableResult
    func type(_ value: TransformShapeType) -> Self  

Adds the type option.

Parameters

value Transform​Shape​Type

An TransformShapeType value.

min​Size(_:​)

@discardableResult
    func minSize(_ value: Float) -> Self  

Adds the minSize option.

Parameters

value Float

This parameter is used to weed out objects that most likely are not faces. Valid range: 0.01...10000

max​Size(_:​)

@discardableResult
    func maxSize(_ value: Float) -> Self  

Adds the maxSize option.

Parameters

value Float

This parameter is used to weed out objects that most likely are not faces. Valid range: 0.01...10000

buffer(_:​)

@discardableResult
    func buffer(_ value: Int) -> Self  

Adds the buffer option.

Parameters

value Int

Adjusts the buffer around the face object as a percentage of the original object. Valid range: 0...1000

blur(_:​)

@discardableResult
    func blur(_ value: Float) -> Self  

Adds the blur option.

Parameters

value Float

The amount to blur the pixelated faces. Valid range: 0...20

all​Faces()

@discardableResult
    func allFaces() -> Self  

Adds the faces option with value all.

faces(_:​)

@discardableResult
    func faces(_ value: [Int]) -> Self  

Adds the faces option.

Parameters

value [Int]

The faces to be included in the crop.