So you are building a Magento module and need a one pixel image for some reason. Maybe you have dynamically loaded images somewhere in the module that do not have their src attribute at all times (you should definitively avoid this situation). Or you need a tracking pixel, which I will cover some other time. Or you need to fill in some nasty bad pixel in your perfect design (I’m just making things up now as I go at this moment ). Sometimes you don’t have control of what folders you will have at your disposal on the destination server, so a best solution would naturally be to deploy your image when your module is installed. This quick and easy post will show you how to do that.
Read more »