note 37847 added to function.imagejpeg

From: Date: Sat, 29 Nov 2003 17:23:44 +0000
Subject: note 37847 added to function.imagejpeg
Groups: php.notes 
Request: Send a blank email to php-notes+get-61142@lists.php.net to get a copy of this message
Now I am so bored by my image PHP script does not work. The image always cannot appear in the web page when I quote it as "<img src=image.php>". But when I only run "image.php", it will appear. Here is my image.php: <? $code="2w2412"; $image = ImageCreateFromJPEG("images/code_bg.jpg"); $text_color = ImageColorAllocate($image, 80, 80, 80); Header("Content-type: image/jpeg"); ImageString ($image, 5, 12, 2, $code, $text_color); ImageJPEG($image, "", 75); ImageDestroy($image); ?> What shall I do? ---- Manual Page -- http://www.php.net/manual/en/function.imagejpeg.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+37847 Delete -- http://master.php.net/manage/user-notes.php?action=delete+37847&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+37847&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#61142) next »