Skip to content

(example) generate picture from prompt, plus edit and save #1569

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

princeaden1
Copy link

  • I understand that this repository is auto-generated and my pull request may not be merged

Changes being requested

Added a picture generator feature as example with image editing capabilities and TypeScript support using openai.images.generate:

  • Image Generation: Create images from text prompts using openai.images.generate
  • Image Editing: Edit existing images with new prompts using openai.images.edit
  • File Processing: Convert multiple image files to API compatible format
  • Auto-save: Generated/edited images are automatically saved to disk

Previous Work

This builds upon the initial picture generator implementation from: Previous PR #1566

Requirements for Image Edit feature part of the code

The following image files must be present in the project directory for the image editing functionality to work:

  • bath-bomb.png
  • body-lotion.png
  • incense-kit.png
  • soap.png

Note: These are sample files used to demonstrate the image editing workflow. Users can replace with their own PNG files.

Additional context & links

See OpenAI Python version of Picture Generator

@princeaden1 princeaden1 requested a review from a team as a code owner July 2, 2025 23:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant