Skip to content

Commit e3d3b55

Browse files
committed
Update sample images
Reduce size of images
1 parent b1bb121 commit e3d3b55

11 files changed

Lines changed: 27 additions & 28 deletions

Docs/Request-ImageEdit.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,14 @@ https://platform.openai.com/docs/guides/image-generation
5656

5757
## EXAMPLES
5858

59-
### Example 1: Restore masked image.
59+
### Example 1: Edit an image with a prompt.
6060
```PowerShell
61-
Request-ImageEdit -Model 'gpt-image-1' -Image C:\sunflower_mask.png -Prompt "sunflower" -OutFile C:\edit.png
61+
Request-ImageEdit -Model 'gpt-image-1' -Prompt 'A bird on the desert' -Image 'C:\sand_with_fether.png' -OutFile 'C:\bird_on_desert.png' -Size 1024x1024
6262
```
6363

64-
| Source (sunflower_mask.png) | Generated (edit.png) |
65-
| -------------------------------------------- | ------------------------------------------------ |
66-
| ![masked](/Docs/images/sunflower_masked.png) | ![restored](/Docs/images/sunflower_restored.png) |
64+
| Original | Generated |
65+
| ----------------------------------------------- | ------------------------------------------ |
66+
| ![original](/Docs/images/sand_with_feather.png) | ![edited](/Docs/images/bird_on_desert.png) |
6767

6868

6969
### Example 2: Create variation image from source and mask.

Docs/images/babylion.png

-157 KB
Loading

Docs/images/bird_on_desert.png

27.1 KB
Loading

Docs/images/cupcake.png

-24.6 KB
Loading

Docs/images/cupcake2.png

-165 KB
Loading

Docs/images/edit2.png

-164 KB
Loading

Docs/images/sand_with_feather.png

-69.7 KB
Loading

Docs/images/sunflower_masked.png

-87.5 KB
Binary file not shown.

Docs/images/sunflower_restored.png

-192 KB
Binary file not shown.

README.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -223,22 +223,21 @@ $global:OPENAI_API_KEY = '<Put your API key here.>'
223223
Request-ImageGeneration -Model 'gpt-image-1' -Prompt 'A cute baby lion' -Size 1024x1024 -OutFile 'C:\output\babylion.png'
224224
```
225225

226-
This sample code saves image to `C:\output\babylion.png`.
227-
The saved image like this.
226+
This sample code saves image to `C:\output\babylion.png`. The saved image like this.
228227

229228
![Generated image](/Docs/images/babylion.png)
230229

231-
### Restore masked images
230+
### Image edit
232231

233232
```PowerShell
234-
Request-ImageEdit -Image 'C:\sunflower_masked.png' -Prompt 'sunflower' -OutFile 'C:\sunflower_restored.png' -Size 256x256
233+
Request-ImageEdit -Model 'gpt-image-1' -Prompt 'A bird on the desert' -Image 'C:\sand_with_fether.png' -OutFile 'C:\bird_on_desert.png' -Size 1024x1024
235234
```
236235

237-
Masked image is restored to full images by AI models.
236+
The edited image like this.
238237

239-
| Source | Generated |
240-
| -------------------------------------------- | ------------------------------------------------ |
241-
| ![masked](/Docs/images/sunflower_masked.png) | ![restored](/Docs/images/sunflower_restored.png) |
238+
| Original | Generated |
239+
| ----------------------------------------------- | ------------------------------------------ |
240+
| ![original](/Docs/images/sand_with_feather.png) | ![edited](/Docs/images/bird_on_desert.png) |
242241

243242

244243
### Moderation

0 commit comments

Comments
 (0)