{"id":30416,"date":"2015-01-27T03:18:56","date_gmt":"2015-01-27T08:18:56","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=30416"},"modified":"2017-08-24T06:12:42","modified_gmt":"2017-08-24T10:12:42","slug":"magento-how-to-change-products-images-dimensions","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/magento-how-to-change-products-images-dimensions.html","title":{"rendered":"Magento. How to change products images dimensions"},"content":{"rendered":"<p><\/p>\r\n<p>This tutorial will show you how to change dimensions of products images on Products Pages, Category Pages and for New Products section on home page in Magento.<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=x_2CIBcUPzQ?width=1280&amp;height=720\" rel=\"prettyPhoto\">Magento. How to change products images dimensions<\/a><\/p>\r\n<ol>\r\n<li>\r\n<p>Open the root directory where you&#8217;ve installed magento site and navigate to: <strong>app\\design\\frontend\\default\\your_theme_number\\template\\ecommerceteam\\cloud-zoom\\catalog\\product\\view<\/strong> folder.<\/p>\r\n<\/li>\r\n<li>\r\n<p>Open <strong>media.phtml<\/strong> file using a text editor.<\/p>\r\n<\/li>\r\n<li>\r\n<p>In order to change the images size on Product Pages, you need to change <strong>$bigImageX = 308;<\/strong> <strong>$bigImageY = 308;<\/strong><br \/>\r\nvalues:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2013\/10\/magento_img_size1.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2013\/10\/magento_img_size1-300x210.jpg\" alt=\"magento_img_size1\" width=\"300\" height=\"210\" class=\"aligncenter size-medium wp-image-42965\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2013\/10\/magento_img_size1-300x210.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2013\/10\/magento_img_size1-150x105.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2013\/10\/magento_img_size1.jpg 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<li>\r\n<p>To modify images size on Category Pages, navigate to <strong>app\\design\\frontend\\default\\your_theme_number\\template\\catalog\\product<\/strong> folder.<\/p>\r\n<\/li>\r\n<li>\r\n<p>Open <strong>list.phtml<\/strong> file. Search for &#8220;resize&#8221; text:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2013\/10\/magento_img_size2.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2013\/10\/magento_img_size2-300x210.jpg\" alt=\"magento_img_size2\" width=\"300\" height=\"210\" class=\"aligncenter size-medium wp-image-42966\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2013\/10\/magento_img_size2-300x210.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2013\/10\/magento_img_size2-150x105.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2013\/10\/magento_img_size2.jpg 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<\/li>\r\n<li>\r\n<p>You need to change:<\/p>\r\n<pre class=\"brush:php\">resize (210);<\/pre>\r\n<p>and<\/p>\r\n<pre class=\"brush:php\">width=\"210\" height=\"210\" values.<\/pre>\r\n<p>We&#8217;ve changed the size for a &#8220;List Mode&#8221;.<\/p>\r\n<\/li>\r\n<li>\r\n<p>Search for the next &#8220;resize&#8221; text to alter images size for a Grid layout.<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2013\/10\/magento_img_size3.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2013\/10\/magento_img_size3-300x210.jpg\" alt=\"magento_img_size3\" width=\"300\" height=\"210\" class=\"aligncenter size-medium wp-image-42967\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2013\/10\/magento_img_size3-300x210.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2013\/10\/magento_img_size3-150x105.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2013\/10\/magento_img_size3.jpg 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<li>\r\n<p>You need to change:<\/p>\r\n<pre class=\"brush:php\">resize (228);<\/pre>\r\n<p>and<\/p>\r\n<pre class=\"brush:php\">width=\"228\" height=\"228\" values.<\/pre>\r\n<p>We&#8217;ve changed the size for a &#8220;Grid Mode&#8221;.<\/p>\r\n<\/li>\r\n<li>\r\n<p>Finally, open <strong>new.phtml<\/strong> file to change the New Products images size:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2013\/10\/magento_img_size4.jpg\"><img loading=\"lazy\" src=\"\/help\/wp-content\/uploads\/2013\/10\/magento_img_size4-300x210.jpg\" alt=\"magento_img_size4\" width=\"300\" height=\"210\" class=\"aligncenter size-medium wp-image-42969\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2013\/10\/magento_img_size4-300x210.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2013\/10\/magento_img_size4-150x105.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2013\/10\/magento_img_size4.jpg 1000w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\r\n<\/li>\r\n<li>\r\n<p>You need to change:<\/p>\r\n<pre class=\"brush:php\">resize (270);<\/pre>\r\n<p>and<\/p>\r\n<pre class=\"brush:php\">width=\"270\" height=\"270\" values.<\/pre>\r\n<p>We&#8217;ve changed the size for the &#8220;New Products&#8221; section on Home page.<\/p>\r\n<\/li>\r\n<\/ol>\r\n<p>Re-load your site to see the changes. Note: you may need to clean browser cookies and cache and also clear <a href=\"\/help\/how-to-clear-magento-cache.html\" target=\"_blank\">Magento cache<\/a>.<\/p>\r\n<div class=\"inline-banner\">\r\n<a href=\"https:\/\/www.templatemonster.com\/service-center\/\">\r\n<img src=\"\/help\/files\/banners\/inline\/Banner-2-(835-x100).jpg\"\/>\r\n<\/a>\r\n<\/div>\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=x_2CIBcUPzQ?width=1280&amp;height=720\" rel=\"prettyPhoto\">Magento. How to change products images dimensions<\/a><\/p>\r\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>This tutorial will show you how to change dimensions of products images on Products Pages, Category Pages and for New Products section on home page in Magento.<\/p>\n","protected":false},"author":12,"featured_media":43329,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[729],"tags":[1183,1267,494,2407,1305],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/30416"}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=30416"}],"version-history":[{"count":2,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/30416\/revisions"}],"predecessor-version":[{"id":83025,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/30416\/revisions\/83025"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/43329"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=30416"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=30416"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=30416"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}