This question already has an answer here:
I am sending product data as response for the rest api call, I want to get product Image Url, currently using this:
$imagehelper = $objectManager->create('Magento\Catalog\Helper\Image'); $image = $imagehelper->init($product, 'category_page_list')->constrainOnly(FALSE)->keepAspectRatio(TRUE)->keepFrame(FALSE)->resize(400)->getUrl();
but getting following URL :
Not getting any image .
referring the following Question : Here