ezzcodeezzlife / dalle2-in-python

Use DALL·E 2 in Python
https://pypi.org/project/dalle2/
MIT License
178 stars 34 forks source link

Downloaded images are webp not png #23

Closed TillBeemelmanns closed 1 year ago

TillBeemelmanns commented 1 year ago

Describe the bug I just ran generate_and_download() and noticed that the downloaded images are of type .webp, but they are stored as png images. I am not sure if openai has changed the compression type recently or if the file ending was set to png on purpose. However, I was confused at first when I tried to open the files with my image viewer and it could not render the images.

To Reproduce run dalle.generate_and_download()

Expected behavior The file ending should be .webp so that a file browser or image viewer can open the downloaded images. Opening the .png files with a browser worked fine ofc.

github-actions[bot] commented 1 year ago

Thanks you for your first issue in dalle2-in-python

ezzcodeezzlife commented 1 year ago

Hey @TillBeemelmanns thanks for bringing this up. OpenAI must have changed this. Will fix asap 🚀