ChatGpt - Edit an Image

Hello all,

I need to edit the images generated by Dall-E and put a product image onto it.

Example Generated image

Now, I want to edit this image, and replace this bottle with a product image.
Something like this -

Currently, I am trying to achieve this with the “ChatGpt - Edit an image” module after a “Generate an image” module.

Help me on this.
Could anyone suggest a proper way of using the “ChatGpt - Edit an image” module.
or any other idea ?

@samliew @NolaDigital

Welcome to the Make community!

For assistance with your scenario, please provide the following:

1. Screenshots of errors, module fields, and filters

Please share screenshots of error messages, relevant module fields, and any filters in question? It would really help other community members to see what you’re looking at.

You can upload images here using the Upload icon in the text editor:
Screenshot_2023-10-07_111039

2. Scenario blueprint

Please export the scenario blueprint file to allow others to view the mappings and settings. At the bottom of the scenario editor, you can click on the three dots to find the Export Blueprint menu item.

Screenshot_2023-08-24_230826
(Note: Exporting your scenario will not include private information or keys to your connections)

Uploading it here will look like this:

blueprint.json (12.3 KB)

3. And most importantly, Input/Output bundles

Please provide the input and output bundles of the modules by running the scenario (or get from the scenario History tab), then click the white speech bubble on the top-right of each module and select “Download input/output bundles”.
Screenshot_2023-10-06_141025

A.

Save each bundle contents in your text editor as a bundle.txt file, and upload it here into this discussion thread.

Uploading them here will look like this:

module-1-input-bundle.txt (12.3 KB)
module-1-output-bundle.txt (12.3 KB)

B.

If you are unable to upload files on this forum, alternatively you can paste the formatted bundles in this manner:

  • Either add three backticks ``` before and after the code, like this:

    ```
    input/output bundle content goes here
    ```

  • Or use the format code button in the editor:
    Screenshot_2023-10-02_191027

Providing the input/output bundles will allow others to replicate what is going on in the scenario even if they do not use the external service.

Following these steps will allow others to assist you here. Thanks!

samliewrequest private consultation

2 Likes

To be able to do so, you need to provide 2 images to the" Edit an image" module:

  • The original one you wish to be edited
  • A second one with a transparent area to highlight the editing mask
    image

I toyed around with it a bit, but even if you create your initial Dall-E prompt, to foresee a region of the image that’s transparent (to be able to use it in the 2nd edit step), it doesn’t work. Then you end up with images like this:

Which can’t be edited (as it is not a transparent selection mask).

The only solution I can think of right now is to get Dall-E to create the background. Then edit it, so that you have a transparent section. Then have Dall-E edit the image with both the Bottle and the Can (to use your example), replacing the “blank” section. Or add another AI to the mix, which could create that selection mask needed.

2 Likes