Set quality of magento catalog product images directly in template files.
There is no need to dublicate and edit core files or adapters. New method called setQuality has been implemented since Magento CE 1.4 and can be used directly in template files.
Read More