0

I create a new template in Magento. On that I'll get the Image-Output with this code.

<div class="worlds-image">
  <img src="<?php echo Mage::getBaseUrl('media').'catalog/category/'.$categoryImage  ?>" />
</div>

How can I crop that image with max-width of 250px and keep the image ratio as well?

Thanks for your help!

1 Answer 1

1

You can try below code to resize image

Mage::helper('catalog/image')->resize($imageUrl, $width , $height)

Your Answer

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

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