I have a GD library on my server installed and 'enabled' but under the Configure Command in php.info it says
"--without-gd"
Is there a way to enable it through root or do I have to recompile?
EDIT: This is what it shows below under "GD"
GD Support enabled GD Version bundled (2.0.34 compatible) FreeType Support enabled FreeType Linkage with freetype FreeType Version 2.2.1 GIF Read Support enabled GIF Create Support enabled JPG Support enabled PNG Support enabled WBMP Support enabled XBM Support enabled
Here is my testing script:
//begin php header('content-type: image/jpg'); $watermark = imagecreatefrompng('ninja.jpg'); $watermark_width = imagesx($watermark); $watermark_height = imagesy($watermark); $image = imagecreatetruecolor($watermark_width, $watermark_height); $image = imagecreatefromjpeg($_GET['src']); $size = getimagesize($_GET['src']); $dest_x = $size[0] - $watermark_width - 5; $dest_y = $size[1] - $watermark_height - 5; imagecopymerge($image, $watermark, $dest_x, $dest_y, 0, 0, $watermark_width, $watermark_height, 100); imagejpeg($image) imagedestroy($image); imagedestroy($watermark); //end php