Importing Multiple Media Gallery Images in Magento

How can I import multiple media gallery images?

In order to import and link multiple gallery images to the product, the following fields should be added to the import profile:







Sku or entity_id fields are added for the extension to identify the product and assign the rest of the mapped data to it. It is possible to define the identification attribute in the 'Import Settings' tab of the profile.



Value_id is the value that is used for the identification of the particular gallery image. It can be either looked up in the "catalog_product_entity_media_gallery" and "catalog_product_entity_media_gallery_value" tables, or you can put a number that exceeds the quantity of existing images, for instance "910000", and the module will automatically generate the correct ID according to the data from the tables. 

Attribute_id is the ID of the 'media_gallery' attribute. By default, the extension adds the 'EAV Attribute Code to Id' modifier to transform the attribute code to the ID. This means, that 'media_gallery' value can be inserted in the import file, and there is no need to check the attribute ID additionally.

The value field should contain either the path to the image in case it's already imported to Magento, or the URL of the image, for the extension to download it to Magento and link to the product. In case several images are to be linked to a product, each value should be defined from a new line.

Kindly note that the directory, where the images are located, or should be downloaded, must be defined in the 'Import Source' tab of the profile. 



Media_type for the images import is 'image'.

Entity_id is the ID of the product where the images should be linked. It can be located on the Product grid in the 'ID' column.



Please follow this link to check the sample file for import.
      • Related Articles

      • Import and Export Guidelines

        General Information About the Package and Its Tariff Plans The Import & Export solution is designed for migrating data from one website to another or to/from a different platform, as well as for automated/manual updates of product quantities, prices, ...
      • Is it possible to generate Images with AI?

        Starting from version 5.0.0 of the ChatGPT AI Content Generator module, it is possible to automatically generate images for your store's product pages, and also generate images for your blog (if you have Amasty Blog Pro module installed) and product ...
      • How to optimize images using Google Page Speed Optimizer extension?

        Check out our video guide on how to optimize images using the Google Page Speed Optimizer module: Additionally, kindly follow the steps below for a step-by-step guide on image optimization. In order to optimize images using Google Page Speed ...
      • Can I import and export attachments?

        Since v.3.5.0 Product Attachments extension adds compatibility with Amasty Import and Export module, enabling import and export functionality to the Pro version of the module. You can find the 'amasty/module-product-attachment-export-entity' and ...
      • Which modules is the Import Export module compatible with?

        A wide range of Amasty extensions come equipped with import and export core functionality. By purchasing them, you can migrate even more types of store data and thus achieve specific business goals faster. The following list of extensions comes ...