I'm getting image for Open Graph protocol with following code:
<meta property="og:image" content="<?php echo $block->escapeUrl($block->getImage($block->getProduct(), 'product_base_image')->getImageUrl()); ?>" />
But it gives me the small image with 80x80px size:
<meta property="og:image" content="https://example.com/pub/media/catalog/product/cache/image/80x80/beff4985b56e3afdbeabfc89641a4582/0/1/01.jpg">
Now I have such folder structure:
How can I get the other size from this folder or non cached images?
etc/view.xml
find image idproduct_base_image
and check the imagetype
, if this select image id that type will beimage
, if type issmall_image
change toimage
If type isimage
only then respective size (width & height) will 80*80 change that one to a proper size as you required. and flush cache and check respective product detail page. – Kanhaiya lal Apr 22 '18 at 16:56