As discussed in
http://www.ogre3d.org/phpBB2/viewtopic.php?t=37304
My application requires all images on the filesystem be stored by their hash, eliminating the extension.
This patch was the smallest delta possible to load those images based on their magic number of image heuristics (in case of TGA).
Ideally eventually, codecs themselves would register code to identify magic numbers...