I have upload some products using script. I am using below code for upload images.
$objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $product_images = $objectManager->create('\Magento\Catalog\Model\Product') ->load($product->getId()); $product_images->addImageToMediaGallery($img, array('image', 'small_image', 'thumbnail'), false, false); $product_images->save();
I have 2 stores and after upload product data i can see products images on first store and on second store i can only see product images on product detail page.
i can't see products images on home page and product list page for second store.
i have already doing indexing and caching process.
can you please help to resolve the issue.