I got the following error.
PHP Fatal error: Uncaught Magento\Framework\Exception\LocalizedException: The image type for the file is invalid. Enter the correct image type and try again. in /var/www/magento/vendor/magento/module-catalog/Model/Product/Gallery/Processor.php:164
I run following code for import product with image.
I got the following error.
PHP Fatal error: Uncaught Magento\Framework\Exception\LocalizedException: The image type for the file is invalid. Enter the correct image type and try again. in /var/www/magento/vendor/magento/module-catalog/Model/Product/Gallery/Processor.php:164