While integrating a shipping solution with Magento for multiple websites, we needed a way to get a logo for the invoice for each store in a generic way. The problem is that ShipWorks only knows the store URL and has no knowledge of Magento’s skin directory. So I came up with a simple PHP script that sits in the root of the Magento install and handles all the skin sanity (that’s right) inside of Magento for me. Enjoy: