Skip to content

Commit 1230493

Browse files
Merge pull request #27 from Wheest/patch-1
Update README.md
2 parents b5497c9 + be6cd81 commit 1230493

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,13 @@ draw.rectangle(area_to_keep, fill=255)
117117

118118
image_rgba = image.copy()
119119
image_rgba.putalpha(image_alpha)
120+
image_rgba = image_rgba.resize((1024, 1024)) # image must be square and 1024x1024
120121
image_rgba.save('image_with_transparent_right_half.png')
121122

122123
# ask DALL·E to fill-in the transparent right half
123124
generations = dalle.generate_from_masked_image(
124125
"portal to another dimension, digital art",
125-
"image_with_transparent_right_half.webp",
126+
"image_with_transparent_right_half.png",
126127
)
127128
```
128129

0 commit comments

Comments
 (0)