Add image attribute to product


While Magento does allow us to add new media image types, sometimes we need image attribute that will work independently of product gallery.


First, new image attribute backend model has to be created:

After that, all we have to do is create a image attribute with newly created backend model:

Congrats, you’re done!