Doc2Image is an AI-powered app that transforms your documents into creative image ideas. Just upload a file (PDF, TXT, DOCX, Markdown and more) and Doc2Image will read the content, highlight the key points, and create visual descriptions ready to use with your favorite image generation platforms like MidJourney, DALL·E, ChatGPT, and more.
doc2image-demo.mp4
- Beautiful, intuitive interface — no technical skills required
- Quick setup — easy to install and start using
- Flexible AI support — works with OpenAI & local models (like LLaMA, Gemma)
- Prompt history — keep track of all your generated images
- Fully customizable — adjust model settings, summary size, and prompt behavior to fit your workflow
- Upload a document — PDF, DOCX, Markdown, TXT and more!
- Choose a model — OpenAI or a local Ollama model
- Customize your request — Select how many image prompts you want, and (optionally) tweak advanced settings like temperature or chunk size
- Generate amazing image ideas — Doc2Image transforms your document into stunning, ready-to-use prompts
You can run doc2image in two ways depending on your needs:
-
Basic setup — the simplest, uses only OpenAI models
-
Advanced setup — supports both OpenAI and local models via Ollama
💡 Pre-requisite: Make sure you have Docker installed on your system.
- Open your terminal or command line.
- Pull the latest image from Docker Hub:
docker pull dylantinten/doc2image:v1.0
- Run the application:
docker run --name doc2image -p 8000:8000 -v data:/app/data dylantinten/doc2image:v1.0
💡 This command will create a
data
folder in your current working directory to store output files (do not delete this folder). You can changedata
to any path you prefer, orcd
into the directory where you want your data to live before running the command.
- Open your browser and visit: http://localhost:8000. You're ready to go!
To stop the application:
docker stop doc2image
To start it again:
docker start doc2image
This setup runs both the doc2image app and an Ollama server locally using Docker Compose. You’ll be able to generate prompts using both OpenAI and open-source models like LLaMA or Gemma.
-
Download the
docker-compose.yaml
. -
Open your terminal or command line and navigate where
docker-compose.yaml
is located.
💡 This command will create a
data
folder in your current working directory to store output files (do not delete this folder).
- Build and launch the services:
docker compose up --build
- Open your browser and go to: http://localhost:8000 to start using the app.
To stop the services:
docker compose down
To restart them later:
docker compose up
We’d love your help to make Doc2Image even better!
Whether it’s reporting bugs, suggesting new features, or submitting a pull request — all contributions are welcome.
If you enjoy using this project, please consider giving it a star ⭐️ — it helps others discover it too!