> For the complete documentation index, see [llms.txt](https://docs.theseaai.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.theseaai.com/main/ch/ren-wu/kuo-zhan.md).

# 扩展

在单次生成步骤中将图像扩展到原始边界之外。扩展可让你在保持视觉一致性的同时调整宽高比和位置。

***

<figure><img src="https://2190407032-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOUQ3EAPIPziQuBKQgmTy%2Fuploads%2FydWY1spv7llinsmCboSi%2Fgitbook_task_expand.png?alt=media&amp;token=d95e1c7c-ce4b-4035-ae38-ac5c784bd7e7" alt=""><figcaption></figcaption></figure>

***

## 交互式教程

{% hint style="info" icon="language" %}
**如何更改教程语言**\
教程默认以英文显示。要以其他语言查看本教程，请将鼠标悬停在右上角并选择 <i class="fa-language">:language:</i> **语言**.
{% endhint %}

{% @arcade/embed flowId="ft86jPMZKmiBM2JvAkUK" url="<https://app.arcade.software/share/ft86jPMZKmiBM2JvAkUK>" %}

***

## 使用方法

{% stepper %}
{% step %}

#### 选择“AI 扩展”

在左侧任务菜单中，选择 <kbd><mark style="color:$primary;">**调整大小**<mark style="color:$primary;"></kbd> 然后 <kbd><mark style="color:$tint;">**AI 扩展**<mark style="color:$tint;"></kbd>

这将打开 AI 扩展工作区。
{% endstep %}

{% step %}

#### 上传产品图片

产品图片将用作前景元素。

你可以通过以下方式上传图片：

* 选择 <kbd><mark style="color:$primary;">**上传图片**<mark style="color:$primary;"></kbd> 在场景中
* 将电脑文件夹中的图片拖放进来
* 将屏幕左下角库面板中的图片拖放进来

上传后，产品将显示在场景中。
{% endstep %}

{% step %}

#### 调整输出大小

您可以直接在画布上手动调整图像大小。

或者：

* 使用场景右侧 AI 扩展设置面板中的缩放百分比控件。

如果您想更改宽高比，请继续下一步。
{% endstep %}

{% step %}

#### 选择扩展比例

在右侧的 AI 扩展设置面板中：

* 打开 <kbd><mark style="color:$primary;">**扩展比例**<mark style="color:$primary;"></kbd> 下拉菜单。
* 选择新的宽高比。

<details>

<summary><strong>可用的纵横比</strong></summary>

* 竖版（9:16，768×1344px）
* 宽屏（21:9，1536×672px）
* 竖向宽屏（9:21，672×1536px）
* 灵活 5:4（5:4，1152×896px）
* 灵活 4:5（4:5，896×1152px）
* 方形（1:1，1024×1024px）
* 照片（3:2，1248×832px）
* 竖版照片（2:3，832×1248px）
* 经典（4:3，1184×864px）
* 竖版经典（3:4，864×1184px）
* 横版（16:9，1344×768px）

</details>
{% endstep %}

{% step %}

#### 可选：添加文本提示

在右侧的 AI 扩展设置面板中，您可以添加文本提示来提供整体方向。\
在“文本提示”字段中：

1. 直接在文本提示字段中输入。
2. 选择 <kbd><mark style="color:$primary;">**库**<mark style="color:$primary;"></kbd> 以重新使用之前保存的提示。
3. 来自 <i class="fa-cloud-arrow-up" style="color:$primary;">:cloud-arrow-up:</i> 图标，上传一张图片，Beachside 会生成一段描述，并将文本放入提示字段。
   {% endstep %}

{% step %}

#### 扩展

确认所有设置后，选择 <kbd><mark style="color:$primary;">**扩展**<mark style="color:$primary;"></kbd>.

生成的场景将显示在您的创作空间中。
{% endstep %}
{% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.theseaai.com/main/ch/ren-wu/kuo-zhan.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
