Repository navigation
Releases
imagewright v0.2.0
Release Notes -- v0.2.0
Released: 2026-11-23
Added
-
A logo.
scripts/build_logo.pydraws imagewright's Art Techno mark (prompt
lines into the die, a lighthouse whose lamp room is the die), the banner, the
64 px icon, and the docs site's logo and favicon, whichmkdocs.ymlnow uses.
The README opens with the banner. -
imagewright service installanduninstall. On macOS they run the
server under launchd: a LaunchAgent that starts at login, or with--boot
(undersudo) a LaunchDaemon that starts at boot with nobody logged in, for
a headless Mac. The service runsimagewright servefrom the installing
venv, setsHOMEfor the model cache, waits for/health, and refuses to
install while another server holds the port.--dry-runprints the property
list.
Changed
-
Beta. The PyPI classifier is now Development Status 4 - Beta. The
README drops its status table for a What's new section. -
The models, by name. The README and the docs home page have a Models
section: FLUX.2 Klein 4B (mlx-community/flux2-klein-4b-4bit, mflux on
MLX, Apple Silicon only, port 8090, 4 steps), SDXL-Lightning
(ByteDance/SDXL-LightningUNets on
stabilityai/stable-diffusion-xl-base-1.0, diffusers on CUDA, MPS or CPU,
port 8091, about 7 GB on first run) and OpenAIgpt-image-1. On a Mac, run
FLUX; anywhere else, run SDXL. -
A Zenodo DOI. The concept DOI
10.5281/zenodo.24450350is in the README
(badge, APA and BibTeX) and inCITATION.cff. It always resolves to the
latest archived version. -
Lock refreshed onto the latest releases: openai 3.58.0 (the
openai
extra), charset-normalizer 3.5.3 and filelock 4.3.1, and in the dev tools
coverage 7.17.5, python-discovery 1.9.7 and virtualenv 21.15.13. No floor
changed.
Security
ImageConfigno longer prints its API key.api_keyis left out of the
dataclassrepr(), so printing or logging a config, asprint(cfg)or an
f-string does, cannot leak the OpenAI key. A test checks it.
Full changelog: CHANGELOG.md
imagewright v0.1.0
Release Notes -- v0.1.0
Released: 2026-11-22
Added
- Documentation site at
flux-frontiers.github.io/imagewright:
getting started, choosing a backend, the servers, the HTTP contract, the MCP
server, the CLI reference and an API reference. A test fails the suite when
a command, MCP tool or public module has no page. - Release workflow. A
v*tag builds the wheel and sdist, creates the
GitHub Release and publishes to PyPI by trusted publishing. imagewright-mcp, an MCP server over stdio with onegeneratetool
(prompt,size,seed,steps, bounded). It chooses its backend with
resolve_image_configon the first call and keeps it. Needs the newmcp
extra (mcp>=1.23.0,<2); without it the command exits naming the pip
command.compress_imageandas_mcp_image(imagewright.mcp_image, also
exported fromimagewright), from gutenberg_kg's_compress_for_mcpand
_as_mcp_image. They fit an image underMCP_IMAGE_MAX_BYTES(3,750,000)
and keep downscaling until it fits instead of giving up after two rounds.
as_mcp_imagereturns the bytes in memory rather than writing a temporary
file.compress_imageneeds only Pillow.- Image servers.
imagewright serveruns the FLUX.2 Klein server
(imagewright.flux_server, port 8090) or, with--backend sdxl, the
SDXL-Lightning server (imagewright.sdxl_server, port 8091). Both are
ports of gutenberg_kg'sserve/image_server.pyandserve/sdxl_server.py
and answer the same routes, request fields and response bodies. The FLUX
server keeps oneImageSynthesizerloaded, renders one image at a time, and
honorsIMAGE_PRELOADandIMAGE_IDLE_UNLOAD_S. The SDXL server also
renders one image at a time; gutenberg_kg's let two requests share the
pipeline. Each module builds its app
withcreate_app()and imports nothing from fastapi or the model stacks at
module scope. - The servers bind
127.0.0.1by default, not0.0.0.0as gutenberg_kg's
do; they have no authentication.--host,MFLUX_SERVER_HOSTor
SDXL_SERVER_HOSToverride it. - Extras
serve(fastapi, uvicorn, pydantic) andsdxl(torch,
diffusers, transformers, accelerate, safetensors, huggingface_hub).serve
without them exits with thepip installcommand to run. ImageSynthesizer.load_model()loads the in-process model ahead of the
first render; the FLUX server uses it to preload.NoImageBackendErrornamesimagewright serve.- The client.
ImageSynthesizer,ImageConfig,ImageBackendand
image_config_from_env, copied fromkg_utils.synthesiswith the same
names and signatures. Backends:mflux-serve(HTTP),mflux-local
(FLUX.2 Klein in process) andopenai. - In-process model lifecycle.
ImageSynthesizer.model_loadedand
unload_model(), fromgutenberg_kg.image_gen. - Discovery.
discover_image_endpointandDEFAULT_IMAGE_ENDPOINTSprobe
IMAGE_ENDPOINT,GUTENKG_IMAGE_ENDPOINT, thenlocalhost:8090and
:8091, on/healthand then/v1/models. - Backend selection.
resolve_image_configchooses, in order: the named
backend or endpoint, the environment, a discovered server, in-process FLUX
with a warning, orNoImageBackendErrorlisting the fixes. imagewright generate PROMPTwrites one PNG and prints its path.- Extras.
flux(mflux>=0.24.0) andopenai(openai>=1.30.0). A
backend whose extra is missing raisesMissingExtraErrornaming the
pip installcommand. The core dependencies areclick,httpxand
pillow. - The repository. Package layout, CI, pre-commit hooks and
imagewright --version.
Full changelog: CHANGELOG.md