LuminaWebsite/assets
Maaxxs 4e414cba63 Karte: screenshot stitcher and sharper tiles
Adds tools/stitch_map_screenshots.py, which assembles overlapping in-game
map screenshots into one large image. How far the map can be zoomed in
sharply depends only on the source resolution - the tiler stops at 1:1 - so
the way to a sharp map is capturing a grid of screenshots at maximum in-game
zoom rather than one full-map screenshot.

Offsets are found by FFT phase correlation and verified by the normalised
cross correlation of the actual overlap, so filename order does not matter.
Because phase correlation is cyclic, both readings of every peak are tried
per axis - shifts beyond half the image width are the normal case at 35%
overlap. Overlaps are composited by nearest image centre, which keeps seams
away from the frame edges without the blur of feathering. Verified against a
reference image: 12 shuffled screenshots with UI bands reassemble
pixel-identically.

Sharpness on the website side: the tile layer now uses detectRetina, so
high-density displays get the next tile level drawn at half size instead of
an upscaled, blurry top level. Default JPEG quality raised from 82 to 88,
which suits map labels better.

The GD check in make_map_tiles.php now reports the loaded php.ini, the
extension_dir and the exact lines to add - a stock Windows/scoop PHP loads no
php.ini at all, so the previous one-line error left no way forward.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-20 13:56:28 +02:00
..
css Karte: tactical map tab with own markers and tactic layers 2026-09-20 13:25:12 +02:00
images Reports: exclude roles from auto-mute; wire up new landscape backgrounds 2026-09-20 02:27:37 +02:00
js Karte: screenshot stitcher and sharper tiles 2026-09-20 13:56:28 +02:00
uploads Karte: tactical map tab with own markers and tactic layers 2026-09-20 13:25:12 +02:00
vendor/leaflet Karte: tactical map tab with own markers and tactic layers 2026-09-20 13:25:12 +02:00