ImageCore AI

From prompt to finished thumbnail, without leaving your machine.

A local studio that covers the full thumbnail path: AI image generation via ComfyUI, composition with editable text layers, a project gallery, and PNG/JPEG export. Open source, with validated execution on an RTX 3080 Ti.

View on GitHub ↗
Year
Role
Product + End-to-end development
Stage
Working product
Product
Local studio · Generative AI · Open source
Focus
Generative AI · Local-first · Layer editor · ComfyUI

Summary

Problem
Generating an AI image and turning it into a publishable thumbnail still takes several apps — and, almost always, the cloud.
My role
Product and end-to-end development: interface, backend, generation, local persistence and tests.
Result
Open-source local studio with real generation via ComfyUI and SDXL, a layer editor, a gallery and configurable export.
Key decision
Local-first with a pluggable AI provider: simulated for GPU-free development and ComfyUI for real generation.

Status and evidence

Stage
Working and released as open source.
What exists or has been validated
Public repository with 180 automated tests; real generation validated with SDXL via ComfyUI on an RTX 3080 Ti.

Technical Scope

Product

  • 180 Automated tests
  • 2 Generation modes
  • 2 Interface languages

The problem

Generating an AI image and turning it into a publishable thumbnail still takes three apps — and, almost always, the cloud. The goal was a single studio, on your own machine, from prompt to final PNG, with full control over the data.

How it works

  1. Prompt or reference
  2. Generation via ComfyUI · SDXL
  3. Base image on canvas
  4. Editable text layers
  5. Saved project
  6. PNG / JPEG export
See product decisions

Result

A working, open-source local studio: real generation validated with SDXL via ComfyUI, a layer editor with ready-made styles, a gallery with reopenable projects, and export with configurable dimensions and quality.

Thumbnail editor — text layers, ready-made styles and per-layer properties over an AI-generated background

The product

ImageCore AI is a local studio for creating AI images and finishing thumbnails ready to publish. Four modules split the work:

  • Image Creator — text-to-image and single-reference image-to-image, with aspect ratio, target dimensions, style, seed and generation parameters.
  • Thumbnail Studio — social platform presets and a canvas for stacking, moving, resizing and styling text layers.
  • Gallery — generations, editable projects and exports, with search, filters, reopen and bulk deletion.
  • Settings — engine, model profiles and language (English or Brazilian Portuguese).

Everything persists locally: images, exports, settings and saved projects stay on disk, with SQLite and files.

Image Creator — platform preset, generation mode, style, quality, references and seed before generating

From prompt to exported thumbnail

The main flow was designed to fit a single session: describe the thumbnail, generate the background, adjust the text and export.

  1. Thumbnail description
  2. Generation via ComfyUI (SDXL)
  3. Background on canvas
  4. Text layers
  5. Save project
  6. PNG / JPEG export

With SDXL, generation happens at the model’s native size (for example, 1344×768) and resizing to the chosen preset — such as 1280×720 — happens at export, separate from inference.

Exported result — PNG/JPEG at custom dimensions, with configurable JPEG quality

Saving a project stores the editable layers along with its own copy of the background — reopening it from the Gallery restores the composition in the studio exactly as saved. The Gallery organizes generations, editable projects and exports, with search, filters and bulk deletion.

Gallery — editable projects with preview, metadata and one-click reopen in the studio

Three product decisions

Local-first as a rule, not a feature

Images, exports, settings and projects stay on the machine’s disk — nothing in the main flow depends on an account or the cloud. Network access exists, but it is an explicit opt-in: by default the server listens on loopback only, and when enabled on the LAN it is read-only and unauthenticated, with that limit documented.

Develop without a GPU, generate with one

A simulated provider produces labeled placeholders and covers the whole interface, gallery, editor and export without a GPU. The ComfyUI provider — which runs real inference — stays isolated behind the same interface. Trade-off: two paths to keep covered by tests.

Available is not the same as validated

The Settings page separates “available files” from “validated execution”: SDXL Base 1.0 is the validated profile (text-to-image and image-to-image with ComfyUI); FLUX.2 Klein 4B and Z-Image-Turbo int8 are candidates, with a planned workflow but no real generation test. The product does not promise what it has not run yet.

Engineering and architecture

Architecture

Conceptual representation, with no internal endpoints, database schema or credentials.

  1. User
  2. Local interface HTML · CSS · JavaScript · PT/EN dictionaries
  3. FastAPI backend Routes · Generation jobs · Providers

Local data and AI

  • SQLite + files (data/)
  • Pillow — export and resizing
  • ComfyUI — 127.0.0.1:8188
  • SDXL Base 1.0

FastAPI backend with pluggable providers

FastAPI concentrates the routes, generation jobs and persistence. The inference provider is chosen by configuration (IMAGECORE_PROVIDER or settings.yaml): simulated for development and tests, comfyui for real generation against the local ComfyUI instance, with the SDXL workflows versioned in config/workflows/.

Local persistence with SQLite and files

Generations, references, projects and the database live in data/. Images are accessed as files; structured state lives in SQLite. Saved projects keep their own copy of the background, so reopening a project never depends on the generation history.

Tests in two layers

pytest covers routes, services and providers — 180 tests, with integration tests using the simulated provider and temporary storage. node --test covers front-end and repository checks. The split mirrors the product: local logic testable without a GPU, real inference validated on hardware.

Validated execution on real hardware

Real SDXL generation via ComfyUI was validated on an NVIDIA GeForce RTX 3080 Ti with 12 GB of VRAM, running without issues in the tests documented in the repository.