How would I check gd is working? Would I do this in PHP? If so, wouldn't my test script verify that it's not working? Can I somehow use gd directly?
From: [address removed]
Date: Mon, 23 Apr[masked]:00:02 -0400
Subject: Re: [baltimorephp] Errors using imagecreate
To: [address removed]
Don't know if this will help, but:
- I tested your script on my server, and it works, so it may come from another place
- have you checked with phpinfo that gd is working ok with png enabled?
Have a good day,
On Mon, Apr 23, 2012 at 10:52 AM, Joe Tseng <[address removed]>
I recently migrated some apps to a new Solaris server and I'm getting some errors back with some graphics-related calls. Just as a test I inserted a small test script:<?php
$myImage = imagecreate(200, 100);
$myGray = imagecolorallocate($myImage, 204, 204, 204);
$myBlack = imagecolorallocate($myImage, 0, 0, 0);
imageline($myImage, 15, 35, 120, 60, $myBlack);
And I got the following message:The image "..." cannot be displayed because it contains errors.
My PHP instance was compiled from source per a request from our server group. My makefile was created using the following flags:
I don't think any sort of error msg would be visible in the Apache error or access log. Am I missing anything in my script or my compile command?
If you type "Google" into Google
, you can break the Internet. -- Jen Barber
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
This message was sent by Joe Tseng ([address removed]) from Baltimore PHP.
To learn more about Joe Tseng, visit his/her member profile
Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages
Meetup, PO Box 4668 #37895 New York, New York[masked] | [address removed]