How to resize Image in Magento 2?
1
I want to resized image of subcategory. for that, I added this code in .phtml file.I'm getting wrong path for image <?php $objectManager = MagentoFrameworkAppObjectManager::getInstance(); $catId = 3; //Parent Category ID $subCategory = $objectManager->create('MagentoCatalogModelCategory')->load($catId); $subCats = $subCategory->getChildrenCategories(); $_helper = $this->helper('MagentoCatalogHelperOutput'); $_imagehelper = $this->helper('MagentoCatalogHelperImage'); $count = 0; ?> <div class="container homecat"> <div class="row"> <?php foreach ($subCats as $subcat) { $_category = $objectManager->create('MagentoCatalogModelCategory')->load($subcat->ge...