Professional Web Applications Themes

#25438 [Opn->Bgs]: GD Fails drawing more than one image with TTF at one time - PHP Development

ID: 25438 Updated by: [email]derickphp.net[/email] Reported By: sven at weih dot de -Status: Open +Status: Bogus Bug Type: GD related Operating System: Windows XP PHP Version: 4.3.2 New Comment: Thank you for taking the time to report a problem with PHP. Unfortunately you are not using a current version of PHP -- the problem might already be fixed. Please download a new PHP version from [url]http://www.php.net/downloads.php[/url] If you are able to reproduce the bug with one of the latest versions of PHP, please change the PHP version on this bug report to the version you tested and change the status ...

  1. #1

    Default #25438 [Opn->Bgs]: GD Fails drawing more than one image with TTF at one time

    ID: 25438
    Updated by: [email]derickphp.net[/email]
    Reported By: sven at weih dot de
    -Status: Open
    +Status: Bogus
    Bug Type: GD related
    Operating System: Windows XP
    PHP Version: 4.3.2
    New Comment:

    Thank you for taking the time to report a problem with PHP.
    Unfortunately you are not using a current version of PHP --
    the problem might already be fixed. Please download a new
    PHP version from [url]http://www.php.net/downloads.php[/url]

    If you are able to reproduce the bug with one of the latest
    versions of PHP, please change the PHP version on this bug report
    to the version you tested and change the status back to "Open".
    Again, thank you for your continued support of PHP.

    4.3.3 is out already, and has some fixes for related issues.


    Previous Comments:
    ------------------------------------------------------------------------

    [2003-09-08 16:49:31] sven at weih dot de

    Description:
    ------------
    Hi,

    i am drawing images using Apache 2 and GD2. Whenever I draw two images
    at the same time, there is a locking problem with the True Type Font.
    In some cases Apache 2 crashes, in others php throws a failure.

    Sven.



    ------------------------------------------------------------------------


    --
    Edit this bug report at [url]http://bugs.php.net/?id=25438&edit=1[/url]
    derick@php.net Guest

  2. #2

    Default #25438 [Opn->Bgs]: GD Fails drawing more than one image with TTF at one time

    ID: 25438
    Updated by: [email]pajoyephp.net[/email]
    Reported By: sven at weih dot de
    -Status: Open
    +Status: Bogus
    Bug Type: GD related
    Operating System: Windows XP
    PHP Version: 4.3.3
    New Comment:

    This is a problem related to the freetype lib. Already reported here.
    We cannot fix this issue.


    Previous Comments:
    ------------------------------------------------------------------------

    [2003-09-09 12:10:41] sven at weih dot de

    here is some code for reproducing the error. Note, it works sometimes,
    but mostly there are errors.

    --- code for sample.php ---

    <?php
    header ("Content-type: image/png");
    $im = ImageCreate (200, 200)
    or die ("Cannot create image stream");
    $background_color = ImageColorAllocate ($im, 255, 255, 255);
    $text_color = ImageColorAllocate ($im, 233, 14, 91);
    $font = "c:/windows/fonts/arial.ttf";

    for ($i=0; $i<360; $i+=5) {
    ImageTTFText ($im, 12, $i, 50, 50, $text_color, $font,
    "Draw sample text.");
    }
    ImagePNG ($im);
    ?>


    --- end of sample.php ---

    --- code of reproduce.php ----

    <html>
    <head>
    </head>
    <body>
    <?php
    for ($i=0; $i<50; $i++) {
    echo '<img src="sample.php?'.$i.'"><br>'."\n";
    }
    ?>
    </body>
    </html>


    -- end of reproduce.php ---


    Both files are in one directory. Calling reproduce.php will bring up
    the error.

    ------------------------------------------------------------------------

    [2003-09-08 18:53:11] [email]sniperphp.net[/email]

    Please provide a short example.


    ------------------------------------------------------------------------

    [2003-09-08 16:49:31] sven at weih dot de

    Description:
    ------------
    Hi,

    i am drawing images using Apache 2 and GD2. Whenever I draw two images
    at the same time, there is a locking problem with the True Type Font.
    In some cases Apache 2 crashes, in others php throws a failure.

    Sven.



    ------------------------------------------------------------------------


    --
    Edit this bug report at [url]http://bugs.php.net/?id=25438&edit=1[/url]
    pajoye@php.net Guest

Similar Threads

  1. Replies: 0
    Last Post: September 9th, 08:46 PM
  2. Replies: 0
    Last Post: September 8th, 10:54 PM
  3. Replies: 0
    Last Post: September 8th, 09:33 PM
  4. #25438 [NEW]: GD Fails drawing more than one image with TTF at one time
    By sven at weih dot de in forum PHP Development
    Replies: 0
    Last Post: September 8th, 08:51 PM
  5. Drawing in a 3D environment - Real Time
    By wrench666 webforumsuser@macromedia.com in forum Macromedia Director 3D
    Replies: 3
    Last Post: September 2nd, 11:36 PM

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
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139