I need to get the url of a product cached thumbnail image.
This is my code:
$appEmulation->startEnvironmentEmulation($_POST['store_id'], \Magento\Framework\App\Area::AREA_FRONTEND, true);
$image = $helperImage->create()->init($product, 'product_thumbnail_image')
->constrainOnly(TRUE)
->keepAspectRatio(TRUE)
->keepTransparency(TRUE)
->keepFrame(FALSE)
->resize(245,300);
$temp[] = $image->getUrl();
$appEmulation->stopEnvironmentEmulation();
The path I get is http://domain.com/pub/static/version1522319407/frontend/Vendor/theme_child/it_IT/Magento_Catalog/images/product/placeholder/thumbnail.jpg
How can I get the cached thumbnail image url?
Thanks in advance.