Fwd: dynamic image will not print properly

From: Date: Tue, 05 Apr 2005 21:40:52 +0000
Subject: Fwd: dynamic image will not print properly
Groups: php.general 
Request: Send a blank email to php-general+get-212307@lists.php.net to get a copy of this message
One thing to add..... the issue is only on windows/IE. If it is say windows/Firefox - everything works as it should. d Begin forwarded message:
From: DuSTiN KRySaK <mailinglists@digitalcollision.com> Date: April 5, 2005 2:26:14 PM PDT To: PHP <php-general@lists.php.net> Subject: dynamic image will not print properly Hi there - I had my first crack at creating a dynamic image. The thing is - the image is displayed fine in the browser, but when you go to print it, the image is either missing, or part of it is missing. Is there something special needed to print a dynamic image? Here is a code snippet used to create the image.... header("Content-type: image/jpg"); $image = imagecreatefromjpeg("template_cpn.jpg"); $red = imagecolorallocate( $image, 255,0,0 ); imagestring($image, 2, 306, 200, $couponcode, $red); imagestring($image, 2, 306, 235, $exp, $red); imagestring($image, 2, 175, 338, $myname, $red); imagestring($image, 2, 175, 360, $myemail, $red); imagejpeg($image); imagedestroy($image); Now the way I have it set up, is that there is a PHP file that generates the image (the above code). Then I have a parent PHP page that calls that page like so: $theurl = "cstl.php?dk=soemthinghere echo "<img src=\"$theurl\">"; See any issues in my code or setup? Any ideas? d


« previous php.general (#212307) next »