Re: [PHP] Website dealing with PHP image generation?
No Problem - Original Message - From: Jeff Lewis <[EMAIL PROTECTED]> To: ReDucTor <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, July 02, 2001 2:48 AM Subject: RE: [PHP] Website dealing with PHP image generation? > I used ImageCreateFromPNG and it worked great! Thanks a lot! GIF wasn't > supported (due to GD 1.6+). > > Jeff > > > -Original Message- > > From: ReDucTor [mailto:[EMAIL PROTECTED]] > > Sent: Sunday, July 01, 2001 12:38 PM > > To: [EMAIL PROTECTED] > > Cc: [EMAIL PROTECTED] > > Subject: Re: [PHP] Website dealing with PHP image generation? > > > > > > Try > > > > $image = ImageCreate(500, 70); > > $bg = ImageColorAllocate($image, 255, 255, 255); > > $blue = ImageColorAllocate($image, 0, 0, 255); > > $black = ImageColorAllocate($image, 0, 0, 0); > > $himage= > > ImageCreateFromGIF("/usr/hyrum/public_html/images/topics/hyrum.gif"); > > ImageRectangle($image, 0, 0, 500, 70, $white); > > ImageString($image, 4, 0, 0, $text, $blue); > > ImageString($image, 3, 0, 20, $title1, $black); > > ImageString($image, 3, 0, 35, $title2, $black); > > ImageString($image, 3, 0, 50, $title3, $black); > > ImageCopy($image, $himage, 400, 5, 1, 60, 60, 60); > > > > ImagePNG($image, "signature.png"); > > ImageDestroy($image); > > > > ----- Original Message - > > From: Jeff Lewis <[EMAIL PROTECTED]> > > To: ReDucTor <[EMAIL PROTECTED]> > > Cc: <[EMAIL PROTECTED]> > > Sent: Monday, July 02, 2001 2:17 AM > > Subject: RE: [PHP] Website dealing with PHP image generation? > > > > > > > Tried with and without and no luck, it has me stumped :) > > > > > > Jeff > > > > > > > -Original Message- > > > > From: ReDucTor [mailto:[EMAIL PROTECTED]] > > > > Sent: Sunday, July 01, 2001 11:53 AM > > > > To: [EMAIL PROTECTED] > > > > Cc: [EMAIL PROTECTED] > > > > Subject: Re: [PHP] Website dealing with PHP image generation? > > > > > > > > > > > > shouldn't it be > > > > $himage= "/usr/hyrum/public_html/images/topics/hyrum.gif"; > > > > not > > > > $himage= "usr/hyrum/public_html/images/topics/hyrum.gif"; > > > > > > > > notice the first slash > > > > - Original Message - > > > > From: Jeff Lewis <[EMAIL PROTECTED]> > > > > To: Jon Yaggie <[EMAIL PROTECTED]>; > > <[EMAIL PROTECTED]> > > > > Sent: Monday, July 02, 2001 1:48 AM > > > > Subject: RE: [PHP] Website dealing with PHP image generation? > > > > > > > > > > > > > I have changed it to below but still get this error > > "Warning: Supplied > > > > > argument is not a valid Image resource in > > > > /home/hyrum/public_html/test.php > > > > > on line 41" and that is the ImageCopy line: > > > > > > > > > > $image = ImageCreate(500, 70); > > > > > $bg = ImageColorAllocate($image, 255, 255, 255); > > > > > $blue = ImageColorAllocate($image, 0, 0, 255); > > > > > $black = ImageColorAllocate($image, 0, 0, 0); > > > > > $himage= "usr/hyrum/public_html/images/topics/hyrum.gif"; > > > > > ImageRectangle($image, 0, 0, 500, 70, $white); > > > > > ImageString($image, 4, 0, 0, $text, $blue); > > > > > ImageString($image, 3, 0, 20, $title1, $black); > > > > > ImageString($image, 3, 0, 35, $title2, $black); > > > > > ImageString($image, 3, 0, 50, $title3, $black); > > > > > ImageCopy($image, $himage, 400, 5, 1, 60, 60, 60); > > > > > > > > > > ImagePNG($image, "signature.png"); > > > > > ImageDestroy($image); > > > > > > > > > > Jeff > > > > > > > > > > > -Original Message- > > > > > > From: Jon Yaggie [mailto:[EMAIL PROTECTED]] > > > > > > Sent: Wednesday, May 30, 2001 6:31 PM > > > > > > To: [EMAIL PROTECTED] > > > > > > Subject: RE: [PHP] Website dealing with PHP image generation? > > > > > > > > > > > > > > > > > > Jeff, > > > > > > > > > > > > I am not extremely fimilar with this function. However, I did > > > > > > notice you are copying your image at a width and height of 1x1. &
RE: [PHP] Website dealing with PHP image generation?
I used ImageCreateFromPNG and it worked great! Thanks a lot! GIF wasn't supported (due to GD 1.6+). Jeff > -Original Message- > From: ReDucTor [mailto:[EMAIL PROTECTED]] > Sent: Sunday, July 01, 2001 12:38 PM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] Website dealing with PHP image generation? > > > Try > > $image = ImageCreate(500, 70); > $bg = ImageColorAllocate($image, 255, 255, 255); > $blue = ImageColorAllocate($image, 0, 0, 255); > $black = ImageColorAllocate($image, 0, 0, 0); > $himage= > ImageCreateFromGIF("/usr/hyrum/public_html/images/topics/hyrum.gif"); > ImageRectangle($image, 0, 0, 500, 70, $white); > ImageString($image, 4, 0, 0, $text, $blue); > ImageString($image, 3, 0, 20, $title1, $black); > ImageString($image, 3, 0, 35, $title2, $black); > ImageString($image, 3, 0, 50, $title3, $black); > ImageCopy($image, $himage, 400, 5, 1, 60, 60, 60); > > ImagePNG($image, "signature.png"); > ImageDestroy($image); > > - Original Message - > From: Jeff Lewis <[EMAIL PROTECTED]> > To: ReDucTor <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Monday, July 02, 2001 2:17 AM > Subject: RE: [PHP] Website dealing with PHP image generation? > > > > Tried with and without and no luck, it has me stumped :) > > > > Jeff > > > > > -Original Message- > > > From: ReDucTor [mailto:[EMAIL PROTECTED]] > > > Sent: Sunday, July 01, 2001 11:53 AM > > > To: [EMAIL PROTECTED] > > > Cc: [EMAIL PROTECTED] > > > Subject: Re: [PHP] Website dealing with PHP image generation? > > > > > > > > > shouldn't it be > > > $himage= "/usr/hyrum/public_html/images/topics/hyrum.gif"; > > > not > > > $himage= "usr/hyrum/public_html/images/topics/hyrum.gif"; > > > > > > notice the first slash > > > - Original Message - > > > From: Jeff Lewis <[EMAIL PROTECTED]> > > > To: Jon Yaggie <[EMAIL PROTECTED]>; > <[EMAIL PROTECTED]> > > > Sent: Monday, July 02, 2001 1:48 AM > > > Subject: RE: [PHP] Website dealing with PHP image generation? > > > > > > > > > > I have changed it to below but still get this error > "Warning: Supplied > > > > argument is not a valid Image resource in > > > /home/hyrum/public_html/test.php > > > > on line 41" and that is the ImageCopy line: > > > > > > > > $image = ImageCreate(500, 70); > > > > $bg = ImageColorAllocate($image, 255, 255, 255); > > > > $blue = ImageColorAllocate($image, 0, 0, 255); > > > > $black = ImageColorAllocate($image, 0, 0, 0); > > > > $himage= "usr/hyrum/public_html/images/topics/hyrum.gif"; > > > > ImageRectangle($image, 0, 0, 500, 70, $white); > > > > ImageString($image, 4, 0, 0, $text, $blue); > > > > ImageString($image, 3, 0, 20, $title1, $black); > > > > ImageString($image, 3, 0, 35, $title2, $black); > > > > ImageString($image, 3, 0, 50, $title3, $black); > > > > ImageCopy($image, $himage, 400, 5, 1, 60, 60, 60); > > > > > > > > ImagePNG($image, "signature.png"); > > > > ImageDestroy($image); > > > > > > > > Jeff > > > > > > > > > -Original Message- > > > > > From: Jon Yaggie [mailto:[EMAIL PROTECTED]] > > > > > Sent: Wednesday, May 30, 2001 6:31 PM > > > > > To: [EMAIL PROTECTED] > > > > > Subject: RE: [PHP] Website dealing with PHP image generation? > > > > > > > > > > > > > > > Jeff, > > > > > > > > > > I am not extremely fimilar with this function. However, I did > > > > > notice you are copying your image at a width and height of 1x1. > > > > > this is my guess as far as i know by default this pixels. so the > > > > > likehood you would see an image copied at 1x1 is rather low. > > > > > > > > > > but perhaps i am complete wrong . . .let us know. > > > > > > > > > > I am creating an image on the fly based on newest entries > in one my > > > mySQL > > > > > tables. In this created image I am trying to add a small one to > > > > > it. Now I > > > > > am TRYING to use the below code: > > > > > > > > > > $image = ImageCreate(500, 70); > > > > > $bg = ImageC
Re: [PHP] Website dealing with PHP image generation?
Try $image = ImageCreate(500, 70); $bg = ImageColorAllocate($image, 255, 255, 255); $blue = ImageColorAllocate($image, 0, 0, 255); $black = ImageColorAllocate($image, 0, 0, 0); $himage= ImageCreateFromGIF("/usr/hyrum/public_html/images/topics/hyrum.gif"); ImageRectangle($image, 0, 0, 500, 70, $white); ImageString($image, 4, 0, 0, $text, $blue); ImageString($image, 3, 0, 20, $title1, $black); ImageString($image, 3, 0, 35, $title2, $black); ImageString($image, 3, 0, 50, $title3, $black); ImageCopy($image, $himage, 400, 5, 1, 60, 60, 60); ImagePNG($image, "signature.png"); ImageDestroy($image); - Original Message - From: Jeff Lewis <[EMAIL PROTECTED]> To: ReDucTor <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, July 02, 2001 2:17 AM Subject: RE: [PHP] Website dealing with PHP image generation? > Tried with and without and no luck, it has me stumped :) > > Jeff > > > -Original Message- > > From: ReDucTor [mailto:[EMAIL PROTECTED]] > > Sent: Sunday, July 01, 2001 11:53 AM > > To: [EMAIL PROTECTED] > > Cc: [EMAIL PROTECTED] > > Subject: Re: [PHP] Website dealing with PHP image generation? > > > > > > shouldn't it be > > $himage= "/usr/hyrum/public_html/images/topics/hyrum.gif"; > > not > > $himage= "usr/hyrum/public_html/images/topics/hyrum.gif"; > > > > notice the first slash > > - Original Message ----- > > From: Jeff Lewis <[EMAIL PROTECTED]> > > To: Jon Yaggie <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > > Sent: Monday, July 02, 2001 1:48 AM > > Subject: RE: [PHP] Website dealing with PHP image generation? > > > > > > > I have changed it to below but still get this error "Warning: Supplied > > > argument is not a valid Image resource in > > /home/hyrum/public_html/test.php > > > on line 41" and that is the ImageCopy line: > > > > > > $image = ImageCreate(500, 70); > > > $bg = ImageColorAllocate($image, 255, 255, 255); > > > $blue = ImageColorAllocate($image, 0, 0, 255); > > > $black = ImageColorAllocate($image, 0, 0, 0); > > > $himage= "usr/hyrum/public_html/images/topics/hyrum.gif"; > > > ImageRectangle($image, 0, 0, 500, 70, $white); > > > ImageString($image, 4, 0, 0, $text, $blue); > > > ImageString($image, 3, 0, 20, $title1, $black); > > > ImageString($image, 3, 0, 35, $title2, $black); > > > ImageString($image, 3, 0, 50, $title3, $black); > > > ImageCopy($image, $himage, 400, 5, 1, 60, 60, 60); > > > > > > ImagePNG($image, "signature.png"); > > > ImageDestroy($image); > > > > > > Jeff > > > > > > > -Original Message- > > > > From: Jon Yaggie [mailto:[EMAIL PROTECTED]] > > > > Sent: Wednesday, May 30, 2001 6:31 PM > > > > To: [EMAIL PROTECTED] > > > > Subject: RE: [PHP] Website dealing with PHP image generation? > > > > > > > > > > > > Jeff, > > > > > > > > I am not extremely fimilar with this function. However, I did > > > > notice you are copying your image at a width and height of 1x1. > > > > this is my guess as far as i know by default this pixels. so the > > > > likehood you would see an image copied at 1x1 is rather low. > > > > > > > > but perhaps i am complete wrong . . .let us know. > > > > > > > > I am creating an image on the fly based on newest entries in one my > > mySQL > > > > tables. In this created image I am trying to add a small one to > > > > it. Now I > > > > am TRYING to use the below code: > > > > > > > > $image = ImageCreate(500, 70); > > > > $bg = ImageColorAllocate($image, 255, 255, 255); > > > > $blue = ImageColorAllocate($image, 0, 0, 255); > > > > $black = ImageColorAllocate($image, 0, 0, 0); > > > > $himage= "usr/hyrum/public_html/images/topics/hyrum.gif"; > > > > ImageRectangle($image, 0, 0, 500, 70, $white); > > > > ImageString($image, 4, 0, 0, $text, $blue); > > > > ImageString($image, 3, 0, 20, $title1, $black); > > > > ImageString($image, 3, 0, 35, $title2, $black); > > > > ImageString($image, 3, 0, 50, $title3, $black); > > > > file://ImageCopy($image, $himage, 400, 20, 1, 1, 60, 60) > > > > > > > > Imagepng($image, "signature.png"); > > > > ImageDestroy($image); > > > > > > > > Am I using ImageCopy incorrectly? It doesn't put anything in the > > > > new image. > > > > > > > > > > > > > > > > > > > > > -- > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Website dealing with PHP image generation?
Tried with and without and no luck, it has me stumped :) Jeff > -Original Message- > From: ReDucTor [mailto:[EMAIL PROTECTED]] > Sent: Sunday, July 01, 2001 11:53 AM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] Website dealing with PHP image generation? > > > shouldn't it be > $himage= "/usr/hyrum/public_html/images/topics/hyrum.gif"; > not > $himage= "usr/hyrum/public_html/images/topics/hyrum.gif"; > > notice the first slash > - Original Message - > From: Jeff Lewis <[EMAIL PROTECTED]> > To: Jon Yaggie <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > Sent: Monday, July 02, 2001 1:48 AM > Subject: RE: [PHP] Website dealing with PHP image generation? > > > > I have changed it to below but still get this error "Warning: Supplied > > argument is not a valid Image resource in > /home/hyrum/public_html/test.php > > on line 41" and that is the ImageCopy line: > > > > $image = ImageCreate(500, 70); > > $bg = ImageColorAllocate($image, 255, 255, 255); > > $blue = ImageColorAllocate($image, 0, 0, 255); > > $black = ImageColorAllocate($image, 0, 0, 0); > > $himage= "usr/hyrum/public_html/images/topics/hyrum.gif"; > > ImageRectangle($image, 0, 0, 500, 70, $white); > > ImageString($image, 4, 0, 0, $text, $blue); > > ImageString($image, 3, 0, 20, $title1, $black); > > ImageString($image, 3, 0, 35, $title2, $black); > > ImageString($image, 3, 0, 50, $title3, $black); > > ImageCopy($image, $himage, 400, 5, 1, 60, 60, 60); > > > > ImagePNG($image, "signature.png"); > > ImageDestroy($image); > > > > Jeff > > > > > -Original Message- > > > From: Jon Yaggie [mailto:[EMAIL PROTECTED]] > > > Sent: Wednesday, May 30, 2001 6:31 PM > > > To: [EMAIL PROTECTED] > > > Subject: RE: [PHP] Website dealing with PHP image generation? > > > > > > > > > Jeff, > > > > > > I am not extremely fimilar with this function. However, I did > > > notice you are copying your image at a width and height of 1x1. > > > this is my guess as far as i know by default this pixels. so the > > > likehood you would see an image copied at 1x1 is rather low. > > > > > > but perhaps i am complete wrong . . .let us know. > > > > > > I am creating an image on the fly based on newest entries in one my > mySQL > > > tables. In this created image I am trying to add a small one to > > > it. Now I > > > am TRYING to use the below code: > > > > > > $image = ImageCreate(500, 70); > > > $bg = ImageColorAllocate($image, 255, 255, 255); > > > $blue = ImageColorAllocate($image, 0, 0, 255); > > > $black = ImageColorAllocate($image, 0, 0, 0); > > > $himage= "usr/hyrum/public_html/images/topics/hyrum.gif"; > > > ImageRectangle($image, 0, 0, 500, 70, $white); > > > ImageString($image, 4, 0, 0, $text, $blue); > > > ImageString($image, 3, 0, 20, $title1, $black); > > > ImageString($image, 3, 0, 35, $title2, $black); > > > ImageString($image, 3, 0, 50, $title3, $black); > > > file://ImageCopy($image, $himage, 400, 20, 1, 1, 60, 60) > > > > > > Imagepng($image, "signature.png"); > > > ImageDestroy($image); > > > > > > Am I using ImageCopy incorrectly? It doesn't put anything in the > > > new image. > > > > > > > > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Website dealing with PHP image generation?
shouldn't it be $himage= "/usr/hyrum/public_html/images/topics/hyrum.gif"; not $himage= "usr/hyrum/public_html/images/topics/hyrum.gif"; notice the first slash - Original Message - From: Jeff Lewis <[EMAIL PROTECTED]> To: Jon Yaggie <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, July 02, 2001 1:48 AM Subject: RE: [PHP] Website dealing with PHP image generation? > I have changed it to below but still get this error "Warning: Supplied > argument is not a valid Image resource in /home/hyrum/public_html/test.php > on line 41" and that is the ImageCopy line: > > $image = ImageCreate(500, 70); > $bg = ImageColorAllocate($image, 255, 255, 255); > $blue = ImageColorAllocate($image, 0, 0, 255); > $black = ImageColorAllocate($image, 0, 0, 0); > $himage= "usr/hyrum/public_html/images/topics/hyrum.gif"; > ImageRectangle($image, 0, 0, 500, 70, $white); > ImageString($image, 4, 0, 0, $text, $blue); > ImageString($image, 3, 0, 20, $title1, $black); > ImageString($image, 3, 0, 35, $title2, $black); > ImageString($image, 3, 0, 50, $title3, $black); > ImageCopy($image, $himage, 400, 5, 1, 60, 60, 60); > > ImagePNG($image, "signature.png"); > ImageDestroy($image); > > Jeff > > > -Original Message----- > > From: Jon Yaggie [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, May 30, 2001 6:31 PM > > To: [EMAIL PROTECTED] > > Subject: RE: [PHP] Website dealing with PHP image generation? > > > > > > Jeff, > > > > I am not extremely fimilar with this function. However, I did > > notice you are copying your image at a width and height of 1x1. > > this is my guess as far as i know by default this pixels. so the > > likehood you would see an image copied at 1x1 is rather low. > > > > but perhaps i am complete wrong . . .let us know. > > > > I am creating an image on the fly based on newest entries in one my mySQL > > tables. In this created image I am trying to add a small one to > > it. Now I > > am TRYING to use the below code: > > > > $image = ImageCreate(500, 70); > > $bg = ImageColorAllocate($image, 255, 255, 255); > > $blue = ImageColorAllocate($image, 0, 0, 255); > > $black = ImageColorAllocate($image, 0, 0, 0); > > $himage= "usr/hyrum/public_html/images/topics/hyrum.gif"; > > ImageRectangle($image, 0, 0, 500, 70, $white); > > ImageString($image, 4, 0, 0, $text, $blue); > > ImageString($image, 3, 0, 20, $title1, $black); > > ImageString($image, 3, 0, 35, $title2, $black); > > ImageString($image, 3, 0, 50, $title3, $black); > > file://ImageCopy($image, $himage, 400, 20, 1, 1, 60, 60) > > > > Imagepng($image, "signature.png"); > > ImageDestroy($image); > > > > Am I using ImageCopy incorrectly? It doesn't put anything in the > > new image. > > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Website dealing with PHP image generation?
I have changed it to below but still get this error "Warning: Supplied argument is not a valid Image resource in /home/hyrum/public_html/test.php on line 41" and that is the ImageCopy line: $image = ImageCreate(500, 70); $bg = ImageColorAllocate($image, 255, 255, 255); $blue = ImageColorAllocate($image, 0, 0, 255); $black = ImageColorAllocate($image, 0, 0, 0); $himage= "usr/hyrum/public_html/images/topics/hyrum.gif"; ImageRectangle($image, 0, 0, 500, 70, $white); ImageString($image, 4, 0, 0, $text, $blue); ImageString($image, 3, 0, 20, $title1, $black); ImageString($image, 3, 0, 35, $title2, $black); ImageString($image, 3, 0, 50, $title3, $black); ImageCopy($image, $himage, 400, 5, 1, 60, 60, 60); ImagePNG($image, "signature.png"); ImageDestroy($image); Jeff > -Original Message- > From: Jon Yaggie [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, May 30, 2001 6:31 PM > To: [EMAIL PROTECTED] > Subject: RE: [PHP] Website dealing with PHP image generation? > > > Jeff, > > I am not extremely fimilar with this function. However, I did > notice you are copying your image at a width and height of 1x1. > this is my guess as far as i know by default this pixels. so the > likehood you would see an image copied at 1x1 is rather low. > > but perhaps i am complete wrong . . .let us know. > > I am creating an image on the fly based on newest entries in one my mySQL > tables. In this created image I am trying to add a small one to > it. Now I > am TRYING to use the below code: > > $image = ImageCreate(500, 70); > $bg = ImageColorAllocate($image, 255, 255, 255); > $blue = ImageColorAllocate($image, 0, 0, 255); > $black = ImageColorAllocate($image, 0, 0, 0); > $himage= "usr/hyrum/public_html/images/topics/hyrum.gif"; > ImageRectangle($image, 0, 0, 500, 70, $white); > ImageString($image, 4, 0, 0, $text, $blue); > ImageString($image, 3, 0, 20, $title1, $black); > ImageString($image, 3, 0, 35, $title2, $black); > ImageString($image, 3, 0, 50, $title3, $black); > //ImageCopy($image, $himage, 400, 20, 1, 1, 60, 60) > > Imagepng($image, "signature.png"); > ImageDestroy($image); > > Am I using ImageCopy incorrectly? It doesn't put anything in the > new image. > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Website dealing with PHP image generation?
Jeff, I am not extremely fimilar with this function. However, I did notice you are copying your image at a width and height of 1x1. this is my guess as far as i know by default this pixels. so the likehood you would see an image copied at 1x1 is rather low. but perhaps i am complete wrong . . .let us know. Ok, I have tried Experts Exchange, Devshed, and even posted on here asking. Does anyone know how to use the image generation? I looked for a good site on it but found nothing... My problem. I am creating an image on the fly based on newest entries in one my mySQL tables. In this created image I am trying to add a small one to it. Now I am TRYING to use the below code: $image = ImageCreate(500, 70); $bg = ImageColorAllocate($image, 255, 255, 255); $blue = ImageColorAllocate($image, 0, 0, 255); $black = ImageColorAllocate($image, 0, 0, 0); $himage= "usr/hyrum/public_html/images/topics/hyrum.gif"; ImageRectangle($image, 0, 0, 500, 70, $white); ImageString($image, 4, 0, 0, $text, $blue); ImageString($image, 3, 0, 20, $title1, $black); ImageString($image, 3, 0, 35, $title2, $black); ImageString($image, 3, 0, 50, $title3, $black); //ImageCopy($image, $himage, 400, 20, 1, 1, 60, 60) Imagepng($image, "signature.png"); ImageDestroy($image); Am I using ImageCopy incorrectly? It doesn't put anything in the new image. Jeff Thank You, Jon Yaggie www.design-monster.com And they were singing . . . '100 little bugs in the code 100 bugs in the code fix one bug, compile it again 101 little bugs in the code 101 little bugs in the code . . .' And it continued until they reached 0
[PHP] Website dealing with PHP image generation?
Ok, I have tried Experts Exchange, Devshed, and even posted on here asking. Does anyone know how to use the image generation? I looked for a good site on it but found nothing... My problem. I am creating an image on the fly based on newest entries in one my mySQL tables. In this created image I am trying to add a small one to it. Now I am TRYING to use the below code: $image = ImageCreate(500, 70); $bg = ImageColorAllocate($image, 255, 255, 255); $blue = ImageColorAllocate($image, 0, 0, 255); $black = ImageColorAllocate($image, 0, 0, 0); $himage= "usr/hyrum/public_html/images/topics/hyrum.gif"; ImageRectangle($image, 0, 0, 500, 70, $white); ImageString($image, 4, 0, 0, $text, $blue); ImageString($image, 3, 0, 20, $title1, $black); ImageString($image, 3, 0, 35, $title2, $black); ImageString($image, 3, 0, 50, $title3, $black); //ImageCopy($image, $himage, 400, 20, 1, 1, 60, 60) Imagepng($image, "signature.png"); ImageDestroy($image); Am I using ImageCopy incorrectly? It doesn't put anything in the new image. Jeff