Skip to content

Releases

imagewright v0.2.0

Choose a tag to compare

@github-actions github-actions released this 23 Nov 21:16

Release Notes -- v0.2.0

Released: 2026-11-23

Added

  • A logo. scripts/build_logo.py draws 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, which mkdocs.yml now uses.
    The README opens with the banner.

  • imagewright service install and uninstall. On macOS they run the
    server under launchd: a LaunchAgent that starts at login, or with --boot
    (under sudo) a LaunchDaemon that starts at boot with nobody logged in, for
    a headless Mac. The service runs imagewright serve from the installing
    venv, sets HOME for the model cache, waits for /health, and refuses to
    install while another server holds the port. --dry-run prints 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-Lightning UNets on
    stabilityai/stable-diffusion-xl-base-1.0, diffusers on CUDA, MPS or CPU,
    port 8091, about 7 GB on first run) and OpenAI gpt-image-1. On a Mac, run
    FLUX; anywhere else, run SDXL.

  • A Zenodo DOI. The concept DOI 10.5281/zenodo.24450350 is in the README
    (badge, APA and BibTeX) and in CITATION.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

  • ImageConfig no longer prints its API key. api_key is left out of the
    dataclass repr(), so printing or logging a config, as print(cfg) or an
    f-string does, cannot leak the OpenAI key. A test checks it.

Full changelog: CHANGELOG.md

imagewright v0.1.0

Choose a tag to compare

@github-actions github-actions released this 22 Nov 23:00
4390a76

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 one generate tool
    (prompt, size, seed, steps, bounded). It chooses its backend with
    resolve_image_config on the first call and keeps it. Needs the new mcp
    extra (mcp>=1.23.0,<2); without it the command exits naming the pip
    command.
  • compress_image and as_mcp_image (imagewright.mcp_image, also
    exported from imagewright), from gutenberg_kg's _compress_for_mcp and
    _as_mcp_image. They fit an image under MCP_IMAGE_MAX_BYTES (3,750,000)
    and keep downscaling until it fits instead of giving up after two rounds.
    as_mcp_image returns the bytes in memory rather than writing a temporary
    file. compress_image needs only Pillow.
  • Image servers. imagewright serve runs 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's serve/image_server.py and serve/sdxl_server.py
    and answer the same routes, request fields and response bodies. The FLUX
    server keeps one ImageSynthesizer loaded, renders one image at a time, and
    honors IMAGE_PRELOAD and IMAGE_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
    with create_app() and imports nothing from fastapi or the model stacks at
    module scope.
  • The servers bind 127.0.0.1 by default, not 0.0.0.0 as gutenberg_kg's
    do; they have no authentication. --host, MFLUX_SERVER_HOST or
    SDXL_SERVER_HOST override it.
  • Extras serve (fastapi, uvicorn, pydantic) and sdxl (torch,
    diffusers, transformers, accelerate, safetensors, huggingface_hub). serve
    without them exits with the pip install command to run.
  • ImageSynthesizer.load_model() loads the in-process model ahead of the
    first render; the FLUX server uses it to preload.
  • NoImageBackendError names imagewright serve.
  • The client. ImageSynthesizer, ImageConfig, ImageBackend and
    image_config_from_env, copied from kg_utils.synthesis with the same
    names and signatures. Backends: mflux-serve (HTTP), mflux-local
    (FLUX.2 Klein in process) and openai.
  • In-process model lifecycle. ImageSynthesizer.model_loaded and
    unload_model(), from gutenberg_kg.image_gen.
  • Discovery. discover_image_endpoint and DEFAULT_IMAGE_ENDPOINTS probe
    IMAGE_ENDPOINT, GUTENKG_IMAGE_ENDPOINT, then localhost:8090 and
    :8091, on /health and then /v1/models.
  • Backend selection. resolve_image_config chooses, in order: the named
    backend or endpoint, the environment, a discovered server, in-process FLUX
    with a warning, or NoImageBackendError listing the fixes.
  • imagewright generate PROMPT writes one PNG and prints its path.
  • Extras. flux (mflux>=0.24.0) and openai (openai>=1.30.0). A
    backend whose extra is missing raises MissingExtraError naming the
    pip install command. The core dependencies are click, httpx and
    pillow.
  • The repository. Package layout, CI, pre-commit hooks and
    imagewright --version.

Full changelog: CHANGELOG.md