---
url: 'https://dxpr.com/hc/documentation/learn-dxpr-builder/ai/image-editing'
title: 'Change a photo with AI | DXPR'
author:
  name: docs-sync
  url: 'https://dxpr.com/users/docs-sync'
date: '2026-10-23T14:31:17+00:00'
copyright: 'Copyright DXPR. All rights reserved.'
type: article
summary: 'Change the light, background or style of a photo on your page with a written instruction'
tags:
  - 'Write and design with AI'
image: 'https://dxpr.com/themes/custom/dxpr_com/images/dxpr-share-card.jpg'
published: true
og:
  site_name: DXPR
  updated_time: '2026-10-23T14:31:17+0000'
  'image:alt': 'DXPR, powered by Drupal: AI-powered Drupal for marketers.'
schema:
  '@context': 'https://schema.org'
  '@graph':
    -
      mainEntity: {  }
    -
      '@type': TechArticle
      headline: 'Change a photo with AI'
      description: 'Change the light, background or style of a photo on your page with a written instruction'
      image:
        '@type': ImageObject
        url: 'https://dxpr.com/themes/custom/dxpr_com/images/dxpr-share-card.jpg'
        width: '1200'
        height: '630'
      datePublished: '2026-10-23T14:31:17+0000'
      dateModified: '2026-10-23T14:31:17+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/hc/documentation/learn-dxpr-builder/ai/image-editing'
      articleSection: 'Write and design with AI'
    -
      '@type': WebPage
      '@id': 'https://dxpr.com/hc/documentation/learn-dxpr-builder/ai/image-editing'
      description: 'Change the light, background or style of a photo on your page with a written instruction'
      breadcrumb:
        '@type': BreadcrumbList
        itemListElement:
          -
            '@type': ListItem
            position: 1
            name: Home
            item: 'https://dxpr.com/'
      publisher:
        '@type': Organization
        '@id': 'https://dxpr.com/#organization'
        name: DXPR
      inLanguage: en
---
[Help Center](/hc)/[Documentation](/hc/documentation) /[Learn DXPR Builder](/hc/documentation/learn-dxpr-builder) /[Build pages](/hc/documentation/learn-dxpr-builder/build) /[Write and design with AI](/hc/documentation/learn-dxpr-builder/ai) # Change a photo with AI.

Change the light, background or style of a photo on your page with a written instruction

 Learn DXPR BuilderBuild pagesWrite and design with AI

   ## In this guide

 Related guides

- [Image alt text](/hc/documentation/learn-dxpr-builder/ai/image-alt-text)
- [Image generation](/hc/documentation/learn-dxpr-builder/ai/image-generation)
- [Undo and redo](/hc/documentation/learn-dxpr-builder/editing/undo-redo)

Is your photo nearly right, but the light is dull or the background distracts? You describe the change and the AI edits the photo in place, without a separate image editor. Use this for a photo that is already on the page; to create a new one, see [Generate an image with AI](/hc/documentation/learn-dxpr-builder/ai/image-generation). The video turns a daytime team photo into a warm evening scene.

  ## Before you start

- AI is switched on, with **Enable image generation** and **Enable page creation assistant** ticked. See [Turn on AI in DXPR Builder](/hc/documentation/learn-dxpr-builder/ai/setup).
- The photo sits in an Image element and is stored on your site, for example picked from the media library. SVG images and images from other websites cannot be edited.

## Set up

1. Point at the photo and click **More** on its control bar.
2. Choose **Edit with AI**.
3. Under **Mode:**, keep **Edit existing image**.
4. Replace the text in the box with the change you want, for example "Make it a warm evening scene with soft lamp light".
5. Click **Edit Image**.
6. Click **Save** on the builder toolbar.

The box starts with the photo's alt text or the description it was generated from. Describe only the change, and say what must stay the same, for example "Keep the people and the table as they are".

## What you see

The photo shows "Editing image..." while the AI works, which can take a minute. Then the edited version takes its place. With **Image size:** on **Auto**, the AI picks the shape, so a wide photo can come back square; choose **Landscape** to keep it wide.

The edited photo is saved as a new WebP image in your media library; the original stays there too. Prefer the old photo? Click the page and press Ctrl+Z (Cmd+Z on a Mac) to undo the edit.

Your instruction also becomes the photo's **Alt attribute**. Replace it with a plain description in the element's **SEO** settings, see [Let AI write your alt text](/hc/documentation/learn-dxpr-builder/ai/image-alt-text).

## Instructions that work well

| You want to | Example instruction |
|---|---|
| change the light or the season | "Make it a bright spring morning" |
| calm a busy background | "Blur the background, keep the people sharp" |
| remove something | "Remove the coffee cups from the table" |
| change the style | "Turn the photo into a watercolour illustration" |
| change colours | "Make the walls light blue" |

## If you don't see the edited photo

- **The Mode: choice is missing and the button says Generate Image.** The element has no photo, or the photo is an SVG or comes from another website. Pick a photo from your media library first.
- **The More menu has no Edit with AI.** **Enable image generation** or **Enable page creation assistant** is off. Tick both at `/admin/dxpr_studio/dxpr_builder/ai_settings`.
- **The photo shows "Image editing failed. Please try again."** DXPR could not edit the photo, for example because the account is out of credits or the instruction breaks the content rules. Click **Retry**, or **Cancel** and change the instruction.
- **The old photo is back after reloading the page.** The page was not saved. Edit again and click **Save** on the builder toolbar.

## What's next?

- [Let AI write your alt text](/hc/documentation/learn-dxpr-builder/ai/image-alt-text): give the edited photo a proper description.
- [Generate an image with AI](/hc/documentation/learn-dxpr-builder/ai/image-generation): create a photo from scratch.
- [Undo and redo](/hc/documentation/learn-dxpr-builder/editing/undo-redo): step back through your changes.