2

I would like to know how to enlarge the images on the pages of products.

1 Answer 1

1

Go to your theme/template/catalog/view/media.phtml and change this

<img id="image-main"
            itemprop="image"
             class="gallery-image visible"
             src="<?php echo $this->helper('catalog/image')->init($_product, 'image') ?>"
             alt="<?php echo $this->escapeHtml($this->getImageLabel()) ?>"
             title="<?php echo $this->escapeHtml($this->getImageLabel()); ?>" />

to

<?php echo '<img id="image" src="'.$this->helper('catalog/image')->init($_product, 'image')->keepAspectRatio(true)->keepFrame(true)->resize(1035, 692).'" alt="'.$this->escapeHtml($this->getImageLabel()).'" title="'.$this->escapeHtml($this->getImageLabel()).'"/>';?>

See this resize(1035, 692) section, it is telling that make image's size to 1035px × 692px.

Hope this helps.

3

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.