pvskp / gimp-dall-e

DALL-E Plugin for the GNU Image Manipulation Program
MIT License
8 stars 0 forks source link

DALL-E GIMP Plugin

Overview

This repository contains a GIMP plugin for integrating with OpenAI's DALL-E service, a powerful AI model that can generate and edit images based on textual descriptions. The plugin offers two main functionalities: creating new images and editing existing ones using DALL-E's capabilities.

Features

Requirements

Installation

To install the DALL-E GIMP Plugin, follow these steps:

  1. Ensure you have GIMP installed on your system.
  2. Clone this repository or download the source code.
  3. Copy the plugin files on plug-ins/ (dall-e_edit.py and dall-e_create.py) to your GIMP plugin directory. Typically, this directory is located at ~/.config/GIMP/2.10/plug-ins on Linux or C:\Users\YourUsername\AppData\Roaming\GIMP\2.10\plug-ins on Windows.
  4. Restart GIMP to load the new plugin.

Usage

Setting Up

Before using the plugin, you need to set your OpenAI API key:

  1. Go to DALL-E in the GIMP menu.
  2. Enter your OpenAI API key when prompted.

Editing Images

  1. Open an image in GIMP.
  2. Select a region you wish to edit.
  3. Navigate to DALL-E -> Edit in the GIMP menu.
  4. Enter your desired prompt and adjust settings like model and image size.
  5. Click OK to start the editing process.

Creating Images

  1. Navigate to DALL-E -> Create in the GIMP menu.
  2. Enter your desired prompt and adjust settings like model, image size, style, and quality.
  3. Click OK to generate a new image.

Known Limitations

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contributing

Contributions to the DALL-E GIMP Plugin are welcome. Please feel free to fork the repository, make changes, and submit pull requests.

Support

If you encounter any issues or have suggestions, please open an issue in this GitHub repository.