Ina Code Blog

bunch of code in one place
« Magetno problem: dbModel read resource does not implement Zend_Db_Adapter_Abstract
Magento: remove break (br) tag from textarea »


Apr
10

Magento: how to change image resolution?

Posted by admin in Magento

Magento resizes and sets image resolution to 75 by default. It was a big problem for me so I had to change that.

To reset image resize resolution open file /lib/Varien/Image/Adapter/Gd2.php prescription drugs without a prescription and find (line 80):

call_user_func($this->_getCallback(’output’), $this->_imageHandler, $fileName);

and replace it with:

if (IMAGETYPE_JPEG === $this->_fileType)call_user_func($this->_getCallback(’output’), $this->_imageHandler, $fileName,100);
else
call_user_func($this->_getCallback(’output’), $this->_imageHandler, $fileName);

For this change to take the effect you need to reset your cache. In your cialis how it works administration go to System -> Cache Management and Clear Image Cache and Refresh All Cache!

Note: Currently I’m using Magento v.1.3.0.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Leave a Reply

Comment