• xtrn/zmachine/tools/blorb2gfx.js xtrn/zmachine/zmachine.js

    From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Sun Jun 21 20:33:42 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/20cd3aff4986cbf19a3c9bfb
    Modified Files:
    xtrn/zmachine/tools/blorb2gfx.js xtrn/zmachine/zmachine.js
    Log Message:
    xtrn/zmachine: Windows/ImageMagick fixes for v6 graphics baking

    Surfaced by a Windows install report (X-Bit / X-Bit BBS) of Arthur's v6 scenes rendering washed-out in SyncTERM.

    - blorb2gfx.js + v6scaledFile: prefer ImageMagick 7's unified "magick" command,
    fall back to "convert". On Windows, bare "convert" is the OS disk-format tool
    that shadows ImageMagick on the PATH, silently breaking the bake.

    - blorb2gfx.js: place "-depth 8" AFTER the input so PPM output is forced to
    maxval 255. On ImageMagick 7, -depth before the input is only a read setting,
    so a 4-bit (16-colour) Blorb source wrote maxval 15 -- which SyncTERM renders
    washed-out (and which looks "fine" in GIMP, since GIMP normalises maxval).
    Latent on every IM7 host, not just Windows. The -gamma 0.55 pre-darken (to
    cancel SyncTERM's pnm_gamma) is unchanged and still applied.

    - zmachine.js: require("userdefs.js") instead of load() -- sbbsdefs.js already
    require()s it, so a 2nd load() re-executes it (idempotent require avoids the
    redundant re-declaration); best practice regardless.

    Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net