All right, I finally had 4 hours of uninterrupted coding time... Found the bug ( needless to say, it was in my code, but it was so elusive, that it crashed zlib and by debugging libpng which led to debugging zlib gave me the hints for fixing it... *sigh* )
Anyways, if you open a map which is PNG based, it will offer a "Q-Create" button. This bypasses the analyze part and starts creating the 16 color reduced map. Since this uses only a guesstimate on the final size, GPSFS4 might be a bit out of sync with the rest, but it should still work...
If you want really nice evenly spaced GPSFS files, run the "Analyze" before the "Create".
zlib and libpng is not needed as they are linked in statically...
The 16 color PNGs reduce the maps to 45%~65% of the original sizes...
Cheers,
MIB.42
PS: I haven't tested it extensively, so let me know if you find "bugs"... Also, there is a minor memory leak ( ~20KB/1000 tiles) I will track down as soon as I have time...
PS2: I have found a minor bug in the size computations, thus the rev1 attachment update
Bookmarks