washed away thumbnail problem with GD

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
rami
Forum Contributor
Posts: 217
Joined: Thu Sep 15, 2005 8:55 am

washed away thumbnail problem with GD

Post by rami »

i am using a greeting and photgallery system made by coder
it uses gd.dll
i am using easy php 1-8 which version of gd it has

my problem is even the good images thumbnail are washed out image and some are card to recognize
so is there any way with in GD to make image thumbnail quality better?
will increasing height and breadth work

i have found they do as

$imageLibrary = 'GD'; // Choose GD or GD2 - use GD2 if it is available
$maxFileSize = 250; // Maximum image size allowed in upload (measured in KiloBytes)
$resize_height = 100; // Height of generated thumbnails
$imagequality = 100; // Quality of thumbnails. Range 0-100


in the code
how can it be made better thubnail
at least not washed awayed thumbnails
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

If you have GD2, use that and make sure to use imagecopyresampled() instead of imagecopyresized()
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

and imagecreatetruecolor
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
Post Reply