Instance Property

maximumSize

Specifies the maximum dimensions for the generated image.

Declaration

var maximumSize: CGSize { get set }

Discussion

The default value is CGSizeZero, which specifies the asset’s unscaled dimensions.

AVAssetImageGenerator scales images such that they fit within the defined bounding box. Images are never scaled up. The aspect ratio of the scaled image is defined by the apertureMode property.

See Also

Configuring Image-Generation Behavior

var apertureMode: AVAssetImageGenerator.ApertureMode?

Specifies the aperture mode for the generated image.

struct AVAssetImageGenerator.ApertureMode

The aperture modes used when generating images.

var appliesPreferredTrackTransform: Bool

Specifies whether to apply the track matrix, or matrices. when extracting an image from the asset.

var asset: AVAsset

The asset that initialized the image generator.

var videoComposition: AVVideoComposition?

The video composition to use when extracting images from assets with multiple video tracks.

var customVideoCompositor: AVVideoCompositing?

Returns the custom video compositor instance used, if any.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software