#40976 [Bgs->Opn]: Timeout at imagecreatetruecolor / imagecreate works

From: Date: Mon, 02 Apr 2007 13:56:08 +0000
Subject: #40976 [Bgs->Opn]: Timeout at imagecreatetruecolor / imagecreate works
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-111011@lists.php.net to get a copy of this message
ID: 40976 User updated by: com at macx dot de Reported By: com at macx dot de -Status: Bogus +Status: Open Bug Type: GD related Operating System: Linux PHP Version: 5.2.1 Assigned To: pajoye New Comment: I think 30 MB is enough. With php 5.0.5 this works very fine. $image_width = 800; $image_height = 470; This is not mutch. Previous Comments: ------------------------------------------------------------------------ [2007-04-02 13:37:29] pajoye@php.net "Fatal error: Allowed memory size of 31457280 bytes exhausted (tried to allocate 3200 bytes)" You reached the memory limit. I do not know how large are the width and the height but it is not a bug. Increase your memory limit if you work with large images. Not a bug > bogus. ------------------------------------------------------------------------ [2007-04-02 13:30:58] com at macx dot de Description: ------------ After upgrade to 5.2.1 I get the following error using "imagecreatetruecolor". This error don't appear using "imagecreate". Fatal error: Allowed memory size of 31457280 bytes exhausted (tried to allocate 3200 bytes) in [...] on line [...] Line marked: imagefill (see code below) Reproduce code: --------------- $image = imagecreatetruecolor($image_width, $image_height); $bg = imagecolorallocate($image, 51, 51, 51); imagefill($image, 0, 0, $bg); Expected result: ---------------- Filled rectangle. Actual result: -------------- see description ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=40976&edit=1

« previous php.bugs (#111011) next »