FitOptions

Options for fitting content to a frame.

Values

Name

Description

Value

FitOptions.APPLY_FRAME_FITTING_OPTIONS

Applies the current frame fitting options to the frame and content. Before using this, do confirm that the expected Frame Fitting Options are applied on the frame. For example, the act of placing an image in a frame set to 'Fit Content Proportionally' can change the crop settings in the Frame Fitting Options, which would then get applied for any subsequent image placement when this API is called.

1634100847

FitOptions.CENTER_CONTENT

Centers content in the frame; preserves the frame size as well as content size and proportions. Note: If the content is larger than the frame, content around the edges is obscured.

1667591779

FitOptions.CONTENT_AWARE_FIT

Selects best crop region of the content for the frame based on Adobe Sensei. Note: Preserves frame size but might scale the content size.

1667327593

FitOptions.CONTENT_TO_FRAME

Resizes content to fit the frame. Note: Content that is a different size than the frame appears stretched or squeezed.

1668575078

FitOptions.FILL_PROPORTIONALLY

Resizes content to fill the frame while perserving the proportions of the content. If the content and frame have different proportions, some of the content is obscured by the bounding box of the frame.

1718185072

FitOptions.FRAME_TO_CONTENT

Resizes the frame so it fits the content.

1718906723

FitOptions.PROPORTIONALLY

Resizes content to fit the frame while preserving content proportions. If the content and frame have different proportions, some empty space appears in the frame.

1668247152