Page 1 of 1

Quality resized images CTL Module Maker

Posted: Tue Apr 06, 2010 5:19 pm
by Martijn van Turnhout
Hi all,

I'm using CTL Module Maker to create custom modules for a new website.  I've run into another problem with CTLMM.

It's about the quality of the resized JPG images. It's subpar. Colors are left out. It's like the quality is set to 50% whenever images get resized and cropped.

Does anybody know how I can keep the same quality, even after images are resized and cropped? You'd do me a big favor. Thanks!

Re: Quality resized images CTL Module Maker

Posted: Tue Apr 06, 2010 8:02 pm
by Jos
I have made a module with CTL ModuleMaker in the past. It has a file called function.plresize.php

Look in there for the line

Code: Select all

imagejpeg($new_img, $newname);
change it to

Code: Select all

imagejpeg($new_img, $newname, 80);
The default value that was used was 75 (so not 50) I use 80 for Gallery, but it can be set to max 100.

Re: Quality resized images CTL Module Maker

Posted: Tue Apr 06, 2010 8:05 pm
by Martijn van Turnhout
Thanks! You're a lifesaver, Jos!