Forum Moderators: coopster

Message Too Old, No Replies

GD library is pixelating images on resize

         

kfancy

4:55 am on Dec 5, 2006 (gmt 0)

10+ Year Member



Hi WebmasterWorld,

I'm having a problem with using GD library to resize images for use as thumbnails, etc. It seems that no matter what combination of ImageCreateTrueColor, ImageCopyResized/ImageCopyResampled, and the quality options, if I try and downsize an image from its original size (for thumbnail, etc) then GD always returns a very pixelated version of the image.

The resizing library that I'm using has worked fine on many other flavors of PHP with GD, but seems to be giving problems on my current box, which is running PHP5.1.5. The GD module stats are:

[GD Version] => bundled (2.0.28 compatible)
[FreeType Support] =>
[T1Lib Support] =>
[GIF Read Support] => 1
[GIF Create Support] => 1
[JPG Support] => 1
[PNG Support] => 1
[WBMP Support] => 1
[XPM Support] =>
[XBM Support] => 1
[JIS-mapped Japanese Font Support] => 1

Any ideas?

\\ Kent

studawsons

5:33 pm on Dec 7, 2006 (gmt 0)

10+ Year Member



When creating (resizing) the image, what image quality are you setting it to? different formas may give off a different quality when converting.