Forum Moderators: coopster

Message Too Old, No Replies

imagecreatetruecolor crashes

         

guarriman

8:53 am on Jul 29, 2005 (gmt 0)

10+ Year Member



Hi.

Working with PHP 4.3.10 + GD 2.0.28 + Linux FC2
(GD version is obtained from 'phpinfo')

I'm trying to create within a function:
$my_value = imagegreatetruevalor(100, 70);
and it works ok (my_value = "Resource id #632")

But within another function I try:
$my_value = imagecreatetruecolor(500, 339);
and it crashes (no 'my_value' showed)

I don't know what it's happening, because the same
functions work ok on another server with this configuration
PHP 4.3.10 + "GD 2.0 or higher" + Linux FC2

Any suggestion is appreciated. Regards.

jatar_k

4:19 pm on Jul 29, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



what is "imagegreatetruevalor"?

when you say crashes does it give you an error message?

guarriman

4:28 pm on Jul 29, 2005 (gmt 0)

10+ Year Member



> what is "imagegreatetruevalor"?
aggg. it's:
imagecreatetruecolor(100, 70);
and it works ok.

>when you say crashes does it give you an error message?
Nope. It doesn't show any error message.

jatar_k

5:41 pm on Jul 29, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



the only thing you are changing is the size?

unless there is any other differences in the script, I am not sure why it is doing that

ergophobe

5:42 pm on Jul 29, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Those sound like pretty small images, but have you checked for differences in timeout and memory limits?