Skip to main content
Bria Expand Image expands an image beyond its original borders by generating new content with Bria. It lets you choose a target aspect ratio, a custom ratio, or define a canvas with manual placement of the original image. The expansion can be guided with a text prompt, and Bria will generate one automatically if the prompt is left empty.

Inputs

When expand_mode is custom_ratio, ratio_width and ratio_height define a target aspect ratio. Bria only accepts width-to-height ratios between 0.5 and 3.0. If the ratio is outside this range, an error is raised and the manual mode should be used instead. When expand_mode is manual, the original image is placed on a canvas at the specified size and position. The image may extend outside the canvas, in which case the outside portion is cropped. When moderation is true, the three moderation booleans are sent to Bria. When moderation is false, they are ignored.

Outputs

This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub

Source fingerprint (SHA-256): d2c9431837f200ccbcb39037f7b26013494c4dea3d40d899db4e717ddbbea71c