Quality resized images CTL Module Maker

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
Martijn van Turnhout
Forum Members
Forum Members
Posts: 52
Joined: Fri Nov 06, 2009 2:30 pm

Quality resized images CTL Module Maker

Post 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!
Jos
Support Guru
Support Guru
Posts: 4020
Joined: Wed Sep 05, 2007 8:03 pm

Re: Quality resized images CTL Module Maker

Post 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.
Martijn van Turnhout
Forum Members
Forum Members
Posts: 52
Joined: Fri Nov 06, 2009 2:30 pm

Re: Quality resized images CTL Module Maker

Post by Martijn van Turnhout »

Thanks! You're a lifesaver, Jos!
Post Reply

Return to “Modules/Add-Ons”