How to import product images in bulk into Magento 2?
Method 1: Import Images from the Local Server
On the Magento server, upload the image files to the
pub/media/import
folder. This is the default folder for importing product images.[magento installation folder]/pub/media/import
You can use a different folder on the Magento server, as long as the path to the folder is specified during the import process.
In the CSV data, enter the name of each image file to be imported on the correct row, by sku, and in the correct column according to image type (
base_image
,small_image
,thumbnail_image
, oradditional_images
).For images in the default import folder(
/pub/media/import
), do not include the path before the filename in the CSV data.The CSV file must include only the sku column and the related image columns.
CSV Import Image from Default LocationFollow the instructions to import the data.
After selecting the file to import, enter the relative path following Images File Directory:
/pub/media/import
Images File DirectoryIf importing multiple images for a single sku, insert a blank row below the sku, and enter the additional image file names in the appropriate columns. The additional rows are understood to belong to the parent sku.
Method 2: Import Images from External Server
- Upload the images to be imported to the designated folder on the external server.
In the CSV data, enter the full URL for each image file in the correct column by image type (
base_image
,small_image
,thumbnail_image
, oradditional_images
).http://example.com/images/image.jpg
Follow the instructions to import the data.
— http://docs.magento.com/m2/ce/user_guide/system/data-import-product-images.html
Magento 2 uses the same folder structure for product images. Assuming your CSV contains the product image attribute, you can simply copy /media/catalog/
to /pub/media/catalog/