Current time: 04-17-2024, 08:05 AM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GD Problem lenny 64-bit
Author Message
fulltilt Offline
Member
***

Posts: 1,225
Joined: Apr 2007
Reputation: 5
Post: #1
GD Problem lenny 64-bit
Lenny 64-bit - isPCP stable

Bin seit 2 tagen am googlen und finde hierzu einfach keine Lösung ...
Hat jemand von Euch eine Idee wie ich folgendes Problem lösen kann?

und zwar produziert GD nur fehlerhafte schwarze Grafiken.
Ich habe vorhin mal dieses testscript verwendet, das liefert auch nur einen schwarzen Balken, woran kann das liegen?
Code:
<?php
// Set the content-type
header("Content-type: image/png");

// Create the image
$im = imagecreatetruecolor(400, 30);

// Create some colors
$white = imagecolorallocate($im, 255, 255, 255);
$grey = imagecolorallocate($im, 128, 128, 128);
$black = imagecolorallocate($im, 0, 0, 0);

// The text to draw
$text = 'Testing...';
// Replace path by your own font path
$font = 'arial.ttf';

// Add some shadow to the text
imagettftext($im, 20, 0, 11, 21, $grey, $font, $text);

// Add the text
imagettftext($im, 20, 0, 10, 20, $black, $font, $text);

// Using imagepng() results in clearer text compared with imagejpeg()
imagepng($im);
imagedestroy($im);
?>
08-13-2009 01:25 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)