You can fetch the product images like Main Image, Thumbnail, Small Image, and Media Gallery Images URL by GraphQl.
You have to pass SKU in the product search query to get the product image URL.
GraphQl Query Request Body: Continue reading “How to fetch Product Image URLs using GraphQl Magento 2?”
You can Retrieve the list of gallery image entries associated with given product by SKU value in Magento 2.
Using the ProductAttributeMediaGalleryManagement Interface, You can use getList($sku) method to achieve the all the media entry for the product. Continue reading “How to get all gallery images collection of the product Magento 2?”
Magento 2, You can check the given folder path contains the file or not using the isFile() method.
For example, You have an image inside the pub/media folder with path,
$imagePath = ‘/catalog/product/placeholder/default/coming-soon.jpg’;
You can see a placeholder image at the above location in the media folder. Continue reading “How to check given folder contains Files in Magento 2?”