imagejpeg function output

From: Date: Fri, 29 Aug 2003 16:35:14 +0000
Subject: imagejpeg function output
Groups: php.general 
Request: Send a blank email to php-general+get-161161@lists.php.net to get a copy of this message
Just to make sure no one is lead astray - I still have an issue getting jpeg enabled on a server with gd and php. I am asking this question 'cause I am doing some work on a different server where jpeg is enabled. Anyway, I have this sort of setup: $src_img = imagecreatefromjpeg($rand_image); $dst_img = imagecreate($destWidth,$destHeight); imagecopyresized($dst_img, $src_img, 0, 0, 0, 0, $destWidth,$destHeight, $srcWidth, $srcHeight); imageJPEG($dst_img, $dest_file, 100); imagedestroy($src_img); print $dest_file; Now, from this I get a bunch of binary code like: …•ª¸âq¼Ö”a µ*'ì ªNp䊤¡ r«V ΦܿGà¾Çq¿å¼=‚©4±3u18º‹÷xj4ê%R£¥N¥J•j6ý•8FMN½Z~Öt©}bµdøŸûvjZˆ`ð÷Á¿Þ.ø ‘eg3%ïĝCágÃKYûNÕ Which I sort of expected. BUT; how do I show the picture ($dest_file) in the browser from here? Thanks, -Mike

« previous php.general (#161161) next »