Web Hosting Talk







View Full Version : // GD images smoothing?


ACIDman
02-20-2004, 11:38 PM
Hi everyone!
I'm working on a site, and it has dynamical thumbnails which I'm not completely satisfied with. The result looks a bit "harsh" ( for instance (http://www.polarhome.com:793/~acidman/index.php?page=photos&gallery=1) ). Is there a way to smooth the image out so it looks more similar to the original one?
Thanks!
--
The version of GD library server has installed is "1.6.2 or higher". So it's not 2.0, therefore I can't use "imagecreatetruecolor". :( I'll try to ask them to install the new version.

Rich2k
02-21-2004, 05:18 AM
With the old way of resampling an image it didn't run a smoothing filter over the image.

However in GD2 you can use the imagecreatetruecolor() function which allows you to get a nice resize effect.

The the comments in http://uk2.php.net/manual/en/function.imagecopyresampled.php

oletom
02-21-2004, 06:16 AM
Do you use any kind of high speed ISP ?

The reason I ask is I was noticeing all the images on the sites I visit looks a bit "harsh"

come to find out it was the high speed that's how they make pages load faster " by cutting down on your image quality.

pdp
02-21-2004, 08:06 PM
Actually, most real high-speed services don't. They just give faster connections.

Some companies offer such a service to dial-up users though - a proxy downloads then further compresses an image, thus letting the user download it faster. The overall effect being that a site loads faster...

ACIDman
02-21-2004, 11:22 PM
Thanks, Rich2k :).
Others - it's not what you think:). The quality of the images I uploaded isn't being reduced. I'd if it would be.