ID: 26195 Comment by: djs1na at hotmail dot com Reported By: bijan at tehranto dot com Status: Bogus Bug Type: Compile Warning Operating System: Linux PHP Version: 5.0.0b2 (beta2) New Comment:
Hi there, I want to know how to put "labels" on images automatically using PHP... Example: -------- Go to http://www.tehranto.com/TTsys/viewprofile.php?user=bijan , you'll see the main picture. It has a lable on top and on bottom... I want to know how to do that... Ending: ------- Hope to hear from you soon, Thanks! Previous Comments: ------------------------------------------------------------------------ [2003-11-11 16:27:25] [EMAIL PROTECTED] Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Thank you for your interest in PHP. This is a support issue and not a bug. ------------------------------------------------------------------------ [2003-11-10 23:32:53] bijan at tehranto dot com Description: ------------ When using either imageSX or imageSY or imageCreateFromJpeg and etc. The compiler does not allow imageSX('myimg.php?index=10') (Note: The file does exist and it is in the correct path) Reproduce code: --------------- for($i = 1; $i <= mysql_num_rows($result) ; $i++) { $record = mysql_fetch_row($result); $pics[$i]['src'] = "pg_im_full_by_id.php?ind=".$record[0]; $newIMG = imagecreatefromjpeg('pg_im_full_by_id.php?ind='.$record[0]); $pics[$i]['width'] = imageSX($newIMG); $pics[$i]['height'] = imageSY($newIMG); } Expected result: ---------------- Create an image using the source file, take its attributes and assign to the array. Actual result: -------------- Warning: imagesx(): supplied argument is not a valid Image resource ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=26195&edit=1