Apache throws a segmentation fault when I try to put text onto a jpeg image. Im using php4.06 and GD 2+. I don't get this error when I use png instead of jpg.
this is my script:
header ("Content-type: image/jpeg");
$im = imagecreatefromjpeg("data/$background");
// $im = imagecreatefrompng("data/$background");
$text_color = imagecolorallocate($im, 0, 0, 0);
ImageTTFText ($im, $font_size, 0, $text_h_offset, $text_v_offset, $text_color, "data/$font", $text );
// imagepng($im);
imagejpeg($im);
any ideas?