I’m in the category view.
I see that magento use the following code to show images:
<?php $_imageUrl=$this->getCurrentCategory()->getImageUrl() ?>
<img src="<?php echo $_imageUrl ?>” alt="<?php echo $this->htmlEscape($this->getCurrentCategory()->getName()) ?>” />
But in this way there are no width and size attributes.
Can Varien_Image handle this?
Some common library such GD2 can do this but is there a Varien class for managing image attribs?
And where to put this? Inside a core/helper?