2 added 93 characters in body
source | link

You can get product image path from below code

    $product_id=20;  //enter product id here

    $objectManager = \Magento\Framework\App\ObjectManager::getInstance();

    $product       = $objectManager->get('Magento\Catalog\Model\Product')->load($product_id);

    $store         = $objectManager->get('Magento\Store\Model\StoreManagerInterface')->getStore();

    $imageUrl      = $store->getBaseUrl(\Magento\Framework\UrlInterface::URL_TYPE_MEDIA) . 'catalog/product' . $product->getImage();

    $mediaUrl      =      $store->getBaseUrl(\Magento\Framework\UrlInterface::URL_TYPE_MEDIA);

i Hope it help

You can get product image path from below code

$product_id=20;  //enter product id here

$objectManager = \Magento\Framework\App\ObjectManager::getInstance();

$product       = $objectManager->get('Magento\Catalog\Model\Product')->load($product_id);

$store         = $objectManager->get('Magento\Store\Model\StoreManagerInterface')->getStore();

$imageUrl      = $store->getBaseUrl(\Magento\Framework\UrlInterface::URL_TYPE_MEDIA) . 'catalog/product' . $product->getImage();

i Hope it help

You can get product image path from below code

    $product_id=20;  //enter product id here

    $objectManager = \Magento\Framework\App\ObjectManager::getInstance();

    $product       = $objectManager->get('Magento\Catalog\Model\Product')->load($product_id);

    $store         = $objectManager->get('Magento\Store\Model\StoreManagerInterface')->getStore();

    $imageUrl      = $store->getBaseUrl(\Magento\Framework\UrlInterface::URL_TYPE_MEDIA) . 'catalog/product' . $product->getImage();

    $mediaUrl      =      $store->getBaseUrl(\Magento\Framework\UrlInterface::URL_TYPE_MEDIA);

i Hope it help

1
source | link

You can get product image path from below code

$product_id=20;  //enter product id here

$objectManager = \Magento\Framework\App\ObjectManager::getInstance();

$product       = $objectManager->get('Magento\Catalog\Model\Product')->load($product_id);

$store         = $objectManager->get('Magento\Store\Model\StoreManagerInterface')->getStore();

$imageUrl      = $store->getBaseUrl(\Magento\Framework\UrlInterface::URL_TYPE_MEDIA) . 'catalog/product' . $product->getImage();

i Hope it help