Magento Set Base Image Script see article at http://magebrew.com/blog/script-to-set-base-image-small-image-and-thumbnail-in-magento Magento Shell Script to set Base Image/Small Image/Thumbnail where it is missing. Usage: php shell/setBaseImage.php