---
url: 'https://dxpr.com/zh-hans/hc/documentation/learn-dxpr-builder/ai/image-editing'
title: '用 AI 更改照片 | DXPR'
author:
  name: Jurriaan
  url: 'https://dxpr.com/users/jurriaan'
date: '2026-10-24T00:43:17+00:00'
updated: '2026-10-24T06:24:37+00:00'
copyright: 'Copyright DXPR. All rights reserved.'
type: article
summary: '照片基本合适，只是光线暗淡或背景杂乱？描述您要的更改，AI 就直接在原处编辑照片，无需单独的图片编辑器。页面上已有的照片用此功能；创建新图请参阅 用 AI 生成图片。该视频把白天的团队合影变成温暖的傍晚场景。'
tags:
  - 'Schrijven en ontwerpen met AI'
image: 'https://dxpr.com/themes/custom/dxpr_com/images/dxpr-share-card.jpg'
published: true
og:
  site_name: DXPR
  updated_time: '2026-10-24T06:24:37+0000'
  'image:alt': 'DXPR, powered by Drupal: AI-powered Drupal for marketers.'
schema:
  '@context': 'https://schema.org'
  '@graph':
    -
      mainEntity: {  }
    -
      '@type': TechArticle
      headline: '用 AI 更改照片'
      description: '照片基本合适，只是光线暗淡或背景杂乱？描述您要的更改，AI 就直接在原处编辑照片，无需单独的图片编辑器。页面上已有的照片用此功能；创建新图请参阅 用 AI 生成图片。该视频把白天的团队合影变成温暖的傍晚场景。'
      image:
        '@type': ImageObject
        url: 'https://dxpr.com/themes/custom/dxpr_com/images/dxpr-share-card.jpg'
        width: '1200'
        height: '630'
      datePublished: '2026-10-24T00:43:17+0000'
      dateModified: '2026-10-24T06:24:37+0000'
      author:
        '@type': Organization
        '@id': 'https://dxpr.com/#organization'
        name: DXPR
        url: 'https://dxpr.com/'
        logo:
          '@type': ImageObject
          url: 'https://dxpr.com/themes/custom/dxpr_com/dxpr-logo-dark.svg'
          width: '1348'
          height: '501'
      publisher:
        '@type': Organization
        '@id': 'https://dxpr.com/#organization'
        name: DXPR
        url: 'https://dxpr.com/'
        logo:
          '@type': ImageObject
          url: 'https://dxpr.com/themes/custom/dxpr_com/dxpr-logo-dark.svg'
          width: '1348'
          height: '501'
      mainEntityOfPage: 'https://dxpr.com/zh-hans/hc/documentation/learn-dxpr-builder/ai/image-editing'
      articleSection: 'Schrijven en ontwerpen met AI'
    -
      '@type': WebPage
      '@id': 'https://dxpr.com/zh-hans/hc/documentation/learn-dxpr-builder/ai/image-editing'
      description: '照片基本合适，只是光线暗淡或背景杂乱？描述您要的更改，AI 就直接在原处编辑照片，无需单独的图片编辑器。页面上已有的照片用此功能；创建新图请参阅 用 AI 生成图片。该视频把白天的团队合影变成温暖的傍晚场景。'
      breadcrumb:
        '@type': BreadcrumbList
        itemListElement:
          -
            '@type': ListItem
            position: 1
            name: 首页
            item: 'https://dxpr.com/zh-hans'
      publisher:
        '@type': Organization
        '@id': 'https://dxpr.com/#organization'
        name: DXPR
      inLanguage: zh-hans
---
[Help Center](/zh-hans/node/75)/[Documentation](/zh-hans/hc/documentation) /[Learn DXPR Builder](/hc/documentation/learn-dxpr-builder) /[Build pages](/hc/documentation/learn-dxpr-builder/build) /[Schrijven en ontwerpen met AI](/hc/documentation/learn-dxpr-builder/ai) # 用 AI 更改照片.

 Learn DXPR BuilderBuild pagesSchrijven en ontwerpen met AI

   ## In this guide

 Related guides

- [让 AI 写替代文本](/zh-hans/hc/documentation/learn-dxpr-builder/ai/image-alt-text)
- [用 AI 生成图片](/zh-hans/hc/documentation/learn-dxpr-builder/ai/image-generation)
- [Undo and redo](/hc/documentation/learn-dxpr-builder/editing/undo-redo)

照片基本合适，只是光线暗淡或背景杂乱？描述您要的更改，AI 就直接在原处编辑照片，无需单独的图片编辑器。页面上已有的照片用此功能；创建新图请参阅 [用 AI 生成图片](/zh-hans/hc/documentation/learn-dxpr-builder/ai/image-generation)。该视频把白天的团队合影变成温暖的傍晚场景。

  ## 开始之前

- AI 已开启，并勾选了 **Enable image generation** 和 **Enable page creation assistant**。请参阅 [在 DXPR Builder 中开启 AI](/zh-hans/hc/documentation/learn-dxpr-builder/ai/setup)。
- 照片位于 Image 元素中并存放在您的网站上，例如从媒体库中挑选。SVG 图片和其他网站的图片无法编辑。

## 设置

1. 指向照片，点击其控制栏上的 **More**。
2. 选择 **Edit with AI**。
3. 在 **Mode:** 下保持 **Edit existing image**。
4. 将输入框中的文字换成您要的更改，例如“Make it a warm evening scene with soft lamp light”。
5. 点击 **Edit Image**。
6. 点击构建器工具栏上的 **Save**。

输入框初始为照片的替代文本，或生成它所用的描述。请只描述更改，并说明必须保持不变的内容，例如“Keep the people and the table as they are”。

## 您会看到的内容

AI 工作时照片显示“Editing image...”，可能需要一分钟。然后编辑后的版本取代原图。**Image size:** 为 **Auto** 时，AI 选择形状，宽照片可能变成方形；要保持宽幅请选择 **Landscape**。

编辑后的照片以新的 WebP 图片保存在媒体库中；原图也保留。更喜欢旧照片？点击页面并按 Ctrl+Z（Mac 上为 Cmd+Z）撤销编辑。

您的指令也会成为照片的 **Alt attribute**。请在元素的 **SEO** 设置中将其换成简洁的描述，请参阅 [让 AI 写替代文本](/zh-hans/hc/documentation/learn-dxpr-builder/ai/image-alt-text)。

## 好用的指令

| 您想要 | 指令示例 |
|---|---|
| 更改光线或季节 | “Make it a bright spring morning” |
| 让杂乱的背景安静下来 | “Blur the background, keep the people sharp” |
| 移除某物 | “Remove the coffee cups from the table” |
| 更改风格 | “Turn the photo into a watercolour illustration” |
| 更改颜色 | “Make the walls light blue” |

## 如果您看不到编辑后的照片

- **没有 Mode: 选项，按钮显示 Generate Image。** 元素中没有照片，或照片是 SVG 或来自其他网站。请先从媒体库挑选一张照片。
- **More 菜单中没有 Edit with AI。** **Enable image generation** 或 **Enable page creation assistant** 为关闭状态。请在 `/admin/dxpr_studio/dxpr_builder/ai_settings` 勾选两者。
- **照片显示“Image editing failed. Please try again.”。** DXPR 未能编辑照片，例如账户积分用完或指令违反内容规则。请点击 **Retry**，或点击 **Cancel** 并修改指令。
- **重新加载页面后旧照片回来了。** 页面没有保存。请重新编辑，并点击构建器工具栏上的 **Save**。

## 接下来做什么？

- [让 AI 写替代文本](/zh-hans/hc/documentation/learn-dxpr-builder/ai/image-alt-text)：给编辑后的照片配上合适的描述。
- [用 AI 生成图片](/zh-hans/hc/documentation/learn-dxpr-builder/ai/image-generation)：从零创建照片。
- [撤销和重做](/hc/documentation/learn-dxpr-builder/editing/undo-redo)：逐步回退更改。