I have to resize the product gallery images.
I’m using this link to resize image
Resize Image
but it’s only allow to resize image product_base_image. While I have to resize all other image then base image.
I’m getting all images by
$images = $_product->getMediaGalleryImages();
it’s give me images data as
Array
(
[value_id] => 3424
[file] => //w/b/wb01-black-0_1.jpg
[media_type] => image
[entity_id] => 14
[label] =>
[position] => 3
[disabled] => 0
[label_default] =>
[position_default] => 3
[disabled_default] => 0
[video_provider] =>
[video_url] =>
[video_title] =>
[video_description] =>
[video_metadata] =>
[video_provider_default] =>
[video_url_default] =>
[video_title_default] =>
[video_description_default] =>
[video_metadata_default] =>
[url] => http://192.168.1.174/magento2261/pub/media/catalog/product/w/b/wb01-black-0_1.jpg
[id] => 3424
[path] => D:/xampp/htdocs/magento2261/pub/media/catalog/product/w/b/wb01-black-0_1.jpg
)