Repository navigation
GridForge v1.9.1 — Night-Red Export Fill, PDF Form Cleanup Hardening & Red-Dark Contrast Fixes
Fix-forward patch release for v1.9.0 (#19) restoring the Red-Light Safe (night-red) dark paper fill in KMZ and MBTiles exports, preventing double-compressed Form XObjects in the PDF closepath cleanup, bounding PDF form parsing and cloning, and raising the remaining Night-Red (red-dark) sheet rules to 3:1 contrast.
Highlights
- Red-Light Safe Export Paper & Labels (
#19,src/gridforge/export/{kmz,mbtiles}.py):- Restored the
night-redKMZ and MBTiles paper fill to(28, 12, 12)and labelled their metadataRED-LIGHT, matching the sheet badge; thenight-redandred-darkidentifiers are unchanged and red-dark exports still sayRED-DARK.
- Restored the
- PDF Closepath Cleanup Hardening (
#19,src/gridforge/render/layout.py):- Rewrote Form XObjects that already carry a
/Filterwithset_dataonly (no secondflate_encode, which poppler reported asUnknown operator x<9c>) and dropped stale/DecodeParms. - Left streams whose declared
/Lengthexceeds the remaining shared parse budget untouched before decoding, and applied the depth-32 form cap beforePdfWriterclones the page so deeper chains cannot raiseRecursionError.
- Rewrote Form XObjects that already carry a
- Night-Red (
red-dark) Sheet Contrast & Missing-Icon Outlines (#19,src/gridforge/render/{layout,styles}.py,src/gridforge/geo/declination.py):- Raised the collar rule, collar fallback box, map-key rules, slope-swatch stroke, declination and grid-reference rules to
#A04048(3.11:1 on#14080B) and the fold mark to#A84850(3.47:1); missing SVG markers on red-dark use the palette halo for their outline.
- Raised the collar rule, collar fallback box, map-key rules, slope-swatch stroke, declination and grid-reference rules to
Pull & Run (amd64 + arm64)
docker pull ghcr.io/jremick/gridforge:v1.9.1Or self-host via Docker Compose:
git clone https://github.com/jremick/gridforge.git && cd gridforge
mkdir -p packs out
docker compose -f docker-compose.ghcr.yml up -dVerification
- Targeted Regression Suite (
tests/unit/test_nov28_live_fixes.py):- Added coverage for pre-compressed and self-referencing Form XObjects, over-deep form chains, dropped
/DecodeParms, undecoded over-budget streams,/app/assets/icons/QML icon hrefs, the halo outline, theRED-LIGHTexport label, and 3:1 red-dark contrast; QGIS is detected withimportlib.util.find_specso the pytest process never imports QGIS or PyQt5.
- Added coverage for pre-compressed and self-referencing Form XObjects, over-deep form chains, dropped
See CHANGELOG.md for full details.