How can I import multiple media gallery images?

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

      • Is it possible to import data to Magento with a custom file?

              It is possible to use a custom import file, but there are a few peculiarities that must be taken into account.       Import modules provide features for flexible configuration of the import file like setting custom entity and field names or ...
      • How do Import/Export extensions work with API?

        At the moment, Import and Export extensions don't provide API functionality to manage import/export process or modify their profiles. With the built-in API functionality, it is possible to import to and export from a specific REST API endpoint. In ...
      • How can the size of images for the blog be adjusted?

        The images' width and height can be adjusted in the Blog Configuration Settings. To do so, please head to Amasty → Blog Pro → Configuration → Post and specify the image width and height: The image in the Blog post will be resized to the respective ...
      • How to optimize images using Google Page Speed Optimizer extension?

        In order to optimize images using Google Page Speed Optimizer extension, first, you need to create WebP copies and make sure they are displayed on the frontend. Please follow the steps below to create WebP copies of the images. Step 1. In Amasty → ...
      • What is the required minimum of fields to import orders/products/customers?

              There is an option to automatically fill the import profile with fields for typical cases for all import modules. This option is available on creating a new import profile in the Import Settings tab:       If enabled, Fields Configuration will ...