Here is an implementation of D3DXGetImageInfoFromFileInMemory using
FreeImage.
Is the license compatible? FreeImage is dual-licensed with the GPL
(which Wine cannot use) and their own license. I'd be surprised if
their license were LGPL compatible.
--Juan