Setting image quality when using GD

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
Pixelchaos
Posts: 17
Joined: Wed 25. Aug 2004, 14:04
Contact:

Setting image quality when using GD

Post by Pixelchaos »

I was looking for a way to make my images a better quality, because the default compression is very heavy. While searching the forums I found two topics about changing the quality of images while using Imagemagick, but I cannot find information on how to change the quality when using GD.

Has anyone had this problem? How did you solve it?
Pappnase

Post by Pappnase »

hello

look into your conf.inc.php beginnign from line 58
if it's possible chnage the settings to GD2
then better image Qual is possible.

Code: Select all

$phpwcms["compress_page"]     = 3;        //wenn 1 = Seite komprimieren, 0 = Kompresion aus
$phpwcms["imagick"]           = 0;        //if 0 = GD, 1 = ImageMagick convert, 2 = ImageMagick 4.2.9
$phpwcms["imagick_path"]      = "";       //Path to ImageMagick
$phpwcms["use_gd2"]           = 1;        //if 0 = GD1, 1 = GD2
and at line 69

you can setup the quality

Code: Select all

$phpwcms["jpg_quality"]       = 75;		  //JPG Quality Range 25-100
Pixelchaos
Posts: 17
Joined: Wed 25. Aug 2004, 14:04
Contact:

Post by Pixelchaos »

I use version 1.1 RC4, but my conf.inc.php doesn't have this line:

Code: Select all

$phpwcms["jpg_quality"]       = 75;        //JPG Quality Range 25-100
The line is also not present at another location in the document. The document only has 70 lines in total.
bachi
Posts: 308
Joined: Fri 6. Aug 2004, 17:52
Location: Western Styria, AUSTRIA
Contact:

Post by bachi »

you must have the version 1.1 RC4 27-08-04

In release 1.1 RC4 22-06-04 this line doesn't exists
Pixelchaos
Posts: 17
Joined: Wed 25. Aug 2004, 14:04
Contact:

Post by Pixelchaos »

I downloaded the package again and the original conf.inc.php does have the line. How can it be that my conf.inc.php is shorter and is missing lines, while my cms is working fine?
Pixelchaos
Posts: 17
Joined: Wed 25. Aug 2004, 14:04
Contact:

Post by Pixelchaos »

Ok, now I get it. Should i update the entire package, or just the conf.inc.php?

I'm guessing the entire package right?
Pappnase

Post by Pappnase »

hello

yes iright you need the entire packet!
Post Reply