Skip to content
TsakmakTsakmak

Project

Imagine Image

A local image generator and editor that runs on my own computer.

Where it runs: On my own computer

Platforms
Web (local only)

The problem

Online image tools send the prompt and the picture to someone else's server, and each one expects a prompt written the way its model likes it. I have a graphics card that can run current image models, and I wanted to know how far a simple, private tool could go on it: type an idea, switch a few things, get a picture, and edit it afterwards.

What it does

Imagine Image is a local picture maker and editor that runs on my own computer. I choose a local image model on a card, switch style chips and LoRAs on or off, pick a size and a quality, and type an idea. ComfyUI makes the picture on my graphics card. The Edit tab changes a picture: an area, an object, the background, the angle or the light. One button upscales the result. The whole app works offline.

How it works

  1. Start the app with one script and open its page in the browser on the same computer.

  2. On the Create tab, pick a model card, switch on LoRAs and style chips, choose an aspect ratio and Draft or Final quality, and type an idea.

  3. Optionally let the prompt helper write the full prompt for the model I picked. It runs on a second computer on my home network.

  4. Press Generate. ComfyUI makes one to four pictures, which land in the gallery strip.

  5. Open a picture in the Edit tab to change it, or upscale it. Each edit is a new picture linked to the old one, with a before and after slider and an Undo.

Key features

Switches instead of settings pages

One window with no page scroll. The model, up to six LoRAs, style chips, size, quality and seed are all cards, chips, sliders and buttons. Only the LoRAs that fit the chosen model are shown. Variations makes up to four pictures from one idea.

Screenshot to follow
The Create tab: switches on the left, the picture in the middle, the prompt helper on the right
Screenshot to follow
Upscale and the gallery strip

A prompt helper that writes for the model

Prompt only is the default: my text goes to the model as I typed it. Engineer mode turns a short idea into a full prompt written for the active model, and Idea finder returns four idea cards to start from. Both use a language model on a second computer on my home network, and I can read and edit the prompt before I press Generate.

Screenshot to follow
A short idea turned into a full prompt for the model I picked

Edit tools

Change an area, remove an object, replace the background, expand a picture, restyle, relight, view from a new angle, fix faces and hands, and restore an old photo. Each edit is saved as a new picture linked to the old one.

Screenshot to follow
The Edit tab: a before and after slider on a changed area

Recipes and remix

Next to each picture the app saves a small recipe file with the prompt, model, seed, LoRAs and timings. Double-clicking a picture in the strip restores all its settings, so a result can be repeated or varied. Deleted items go to a trash folder first.

Screenshot to follow
Every picture keeps its recipe, so it can be remixed
  • Timings and limits I measured

    Speeds are measured on my own graphics card, not quoted from model pages: a Draft picture takes from under two seconds to about seven, depending on the model. The app has a Limits page that lists what does not work well yet, such as weak expansion on all four sides or small changes of angle.

Security and privacy

  • Everything runs on my own computer. The page and its backend answer only on the computer itself, and nothing is uploaded to a cloud service.
  • The app works offline. The only network use is the language model for the prompt helper on a computer on my home network.
  • Pictures from my computer are accepted as PNG, JPEG or WEBP up to 40 MB, are cut down to 4096 pixels on the long side and lose their hidden metadata. Pictures reach the page by id, never as file paths.
  • The folders with the pictures, the recipes and the models stay on my computer. The code lives in a private repository.
  • It is a personal tool with no accounts and no login, so anyone who can use the computer can use the app.

Under the hood

A Python 3.11 app with FastAPI serves one static web page. A headless ComfyUI runs the picture workflows, started and stopped by the app. Before each job the app measures graphics memory and refuses a job that would not fit, with one plain line saying why. A shared lock makes sure only one of my local AI apps uses the graphics card at a time, so Imagine Image and AI Architect never collide. The prompt helper talks to Ollama on the second computer.

Hardware: an RTX 5090 workstation, with a Mac mini M4 as the prompt helper.

I built it by directing AI agents under written rules, with decisions logged and results measured on the real hardware. I set the requirements and reviewed the result.

Limits: it is for my personal use. It needs a Windows computer with an NVIDIA graphics card. The prompt helper needs the second computer to be on.

Stack

  • Python
  • FastAPI
  • ComfyUI
  • Ollama
  • PowerShell

Get in touch