SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Nov 2005
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Smile Store image in a folder

    Hello all,

    i created a dynamic image using

    <?php
    @header ("Content-type: image/jpeg");
    $im = @imagecreate (30, 100)
    or die ("Cannot Initialize new GD image stream");
    $background_color = imagecolorallocate ($im, 255, 255, 255);
    $text_color = imagecolorallocate ($im, 233, 14, 91);
    imagestringup ($im, 1, 10, 100, "A Simple Text String", $text_color);
    @imagejpeg($im);

    ?>


    I want this image to store in a folder & db and available for further use.

    can any one help me.

  2. #2
    SitePoint Addict lmasi02's Avatar
    Join Date
    Aug 2004
    Location
    Zambia
    Posts
    257
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Power of Knowledge

  3. #3
    SitePoint Member
    Join Date
    Nov 2005
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I created a image using

    <?php
    $pic=ImageCreate(20,100);
    $col1=ImageColorAllocate($pic,0,0,255);
    $col2=ImageColorAllocate($pic,0,0,255);
    ImageFilledRectangle($pic,1,1,100,100,$col2);
    ImagePNG($pic,"pic.png");
    ImageDestroy($pic);
    ?>
    <img src="pic.png" border=0>


    i want to enter text inside the image. at present it create a blank image

    can any one help me.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •