Images that S2 layers depend on are now served right from the filesystem, with no database metadata.
(featuring mart's "supersimple" navigation icons)
The actual file, on disk:
But we can still do palette modifications:
If you want to trace the code path, look at lib/Apache/Fotobilder.pm, and search for Apache::FotoBilder::Pic and see where one path (the normal one) goes to 'handler' (upic with metadata in database), and the other goes to 'img_dir', which is a lot simpler. The look at Pic.pm and see how they then share a ton of code to do the palette stuff and send the file out.
So, um.... I think it's style makin' time!