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>
8 lines
199 B
Text
8 lines
199 B
Text
config.php
|
|
assets/uploads/avatars/*
|
|
!assets/uploads/avatars/.htaccess
|
|
!assets/uploads/avatars/.gitkeep
|
|
assets/uploads/maps/*
|
|
!assets/uploads/maps/.htaccess
|
|
!assets/uploads/maps/.gitkeep
|
|
__pycache__/
|