lisali
Total Posts: 719
Joined: 2008-04-28
London, UK
scree - 11 September 2008 08:30 AM
Try to change the quality in
/ app / code / core / Mage / Media / Model / File / Image . php
on line 168 from
$result = imagejpeg ( $object -> getTmpImage (), $object -> getFilePath ( true ), 80 );
to
$result = imagejpeg ( $object -> getTmpImage (), $object -> getFilePath ( true ), 95 );
Great, thanks for this. Best to put this in a local app/code/local… folder to prevent overwriting it when updating. Should be in the GUI backend.
Thanks!!
Signature
ExtraCall.com - UK Telecommunications & VOIP | SurveySam - Worldwide market research & surveys
Posted: September 23 2008
| top
| # 17
sherrie
Total Posts: 1187
Joined: 2007-12-14
Illinois, USA
Where would this go in the local folder since it’s parent folder is not in the core folder?
Signature
Creativity is falling in love with the world. – Dewitt Jones
Community Extension: Pickup at Event/Multiple Flatrates
Posted: September 23 2008
| top
| # 18
sherrie
Total Posts: 1187
Joined: 2007-12-14
Illinois, USA
Ohhhh it is in the core folder now, sorry - I totally missed that, I thought we were still talking about the Gd2.php file from before. That’ll teach me to half-read something!
Signature
Creativity is falling in love with the world. – Dewitt Jones
Community Extension: Pickup at Event/Multiple Flatrates
Posted: September 23 2008
| top
| # 20
davidn
Total Posts: 24
Joined: 2008-08-14
After upgrading to 1.1.6 my image compression settings were overwritten. So following these directions I went back and changed them again. This time though it has no effect. In fact the images are just being crushed, they look really bad. Has anyone else noticed this? Is there another way to adjust the compression?
Thanks
~David
Posted: September 27 2008
| top
| # 21
acstudios
Total Posts: 14
Joined: 2008-08-19
Any solutions or suggestions on this with version 1.1.6?
Posted: October 2 2008
| top
| # 22
TheTwistedOne
Total Posts: 7
Joined: 2008-09-20
I´m also having problems with this.
The mod described by Scree dosen´t seem to work in version 1.1.6
Help!!! images look terrible!
Posted: October 5 2008
| top
| # 23
TheTwistedOne
Total Posts: 7
Joined: 2008-09-20
Ok, solution found for version 1.1.1 and above including 1.1.6
The code is in /lib/Varien/Image/Adapter/Gd2.php , PLEASE note if you are using 1.1.6 the line to change is 80, NOT 68.
00christian00 - 31 July 2008 05:22 AM
In version 1.1 the code has changed.
To up the quality change the line 68
call_user_func ( $this -> _getCallback ( 'output' ), $this -> _imageHandler , $fileName );
to
if ( IMAGETYPE_JPEG === $this -> _fileType ) call_user_func ( $this -> _getCallback ( 'output' ), $this -> _imageHandler , $fileName , 90 ); else call_user_func ( $this -> _getCallback ( 'output' ), $this -> _imageHandler , $fileName );
90 is my quality,change to your preference.Remember to clear the image cache to test.
Remember 1.1.6 users change line 80
Many thanks to 00christian00 for this fix, you rock!
Posted: October 5 2008
| top
| # 24
acstudios
Total Posts: 14
Joined: 2008-08-19
Hey TheTwistedOne! This definitely worked. Thanks for posting this up!
Posted: October 7 2008
| top
| # 25
TheTwistedOne
Total Posts: 7
Joined: 2008-09-20
@AcStudios, i´m glad it helped.
Full credit should go to 00christian00 for working this one out.
Posted: October 8 2008
| top
| # 26
Kasper
Total Posts: 29
Joined: 2007-11-11
Denmark
Nice tip, but how would you go about implementing this so that it wont get overwritten when updating magento?
Posted: October 8 2008
| top
| # 27
tilzinger
Total Posts: 116
Joined: 2007-12-27
Kasper - 07 October 2008 11:48 PM
Nice tip, but how would you go about implementing this so that it wont get overwritten when updating magento?
Create a .txt file in the root of your site that says READMEWHENUPDATING and note the changes you need to make to core files.
And yes, a setting like this should most definitely be editable in the Admin area.
Posted: October 10 2008
| top
| # 28
doctorlogos
Total Posts: 178
Joined: 2008-05-06
@tilzinger, this feature in the Admin Area is crucial.
Dear Magento Team, take note!!!
Posted: October 11 2008
| top
| # 29