> ## Documentation Index
> Fetch the complete documentation index at: https://help.descript.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Expand images and videos with AI

> Use Expand with AI to fill the space around an image or video with generated content when the original frame doesn't fit the format you need.

> [!WARNING]
>
> **Review ignored text before expanding video**
>
> Expanding a video removes [ignored text](https://help.descript.com/script-editing/delete-vs-ignore.md) from the script.

[Expand with AI walkthrough](https://fast.wistia.net/embed/iframe/4xe6rnvjyw?seo=false)

## Expand an image or video

If you're changing formats, set your [composition's aspect ratio](https://help.descript.com/working-in-projects/aspect-ratio.md) first.

1. Select the image or video layer in the [scene editor](https://help.descript.com/visuals/scene-editor-overview.md). Videos can be up to 30 minutes long.
2. Open **Transform** in the floating toolbar, then select **Expand with AI**.
3. Descript will, by default, set the expansion to fill the canvas. To set a custom ratio, drag the outer frame's handles to define the area to fill.
4. If the media spans multiple scenes, choose to apply this to **Current scene** or **All scenes**.

> [!NOTE]
>
> For video, **Current scene** supports cuts within a script scene when they use the same source video. Other video layers require one continuous clip. Scenes with freeze frames cannot be expanded on their own.

5. Optionally, enter a prompt to guide the output.
6. Click **Generate**. Expanding a video adds content around the frame without upscaling the original video.

![Expand with AI panel beside a dog photo, with the outer frame extended beyond the photo and a Generate button.](https://mintcdn.com/descript-5bf56f3f/z1_iuwG7aZbenhNj/images/expandwithAI.webp?fit=max\&auto=format\&n=z1_iuwG7aZbenhNj\&q=85\&s=8e6b573fd36a38911ea4821b2eec20ed)


## Related topics

- [Edit images with AI](https://help.descript.com/generative-media/edit-with-ai.md)
- [Extend video](https://help.descript.com/generative-media/extend-video.md)
- [Generate AI images and video](https://help.descript.com/generative-media/generate-media.md)
- [AI media editing tools](https://help.descript.com/generative-media/gm-tools-overview.md)
