When I upload the image in magento slider if image size is 150kb & When I inspect the image & download the image size will be changed to 400kb
Let me know what was the issue.
magento-1.9
When I upload the image in magento slider if image size is 150kb & When I inspect the image & download the image size will be changed to 400kb
Let me know what was the issue.
Best Answer
If you want to change size of image on category page navigate to
app/design/frontend/[your_package]/[your_theme]/catalog/product/list.phtml
and search for the line:and change it to:
and if you want to change the image of product page then head to
app/design/frontend/[your_package]/[your_theme]/catalog/product/view.phtml
and search for the same:By default the re-size of the product images working in the following way:
The code generate the 135х135px image. There are a number of additional parameters that control the image output, here is a list of these parameters with default values:
If you want to get images on actual width or height use the following:
Either set keepFrame to true, so it's always exact size, or set keepAspectRatio to false.