addressalign-toparrow-leftarrow-rightbackbellblockcalendarcameraccwcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscontroller-playcrossdots-three-verticaleditemptyheartexporteye-with-lineeyefacebookfolderfullheartglobegmailgooglegroupshelp-with-circleimageimagesinstagramFill 1light-bulblinklocation-pinm-swarmSearchmailmessagesminusmoremuplabelShape 3 + Rectangle 1ShapeoutlookpersonJoin Group on CardStartprice-ribbonprintShapeShapeShapeShapeImported LayersImported LayersImported Layersshieldstartickettrashtriangle-downtriangle-uptwitteruserwarningyahoo

Re: [baltimorephp] Errors using imagecreate

From: Devon O.
Sent on: Monday, April 23, 2012 7:58 PM
Op 23 april[masked]:46 heeft Joe Tseng <[address removed]> het
volgende geschreven:
> Just to cut down on the clutter, I removed everything from my PHP file and
> had just the header file:
> header("Content-type­: image/png");
> That was enough to generate that error.

This will generate the error because you are telling the browser to
expect an image and then sending no data. Did you try checking the
errors from the function returns as I suggested? Is imagepng()
returning false? Are any of the other functions you call returning
false? Error checking is important and it's been mentioned by at least
two discrete parties without reply, so please do that.

Additionally, someone also mentioned whether GD was compiled with PNG
support. If you checked for errors, you might find imagepng returning
false (or maybe not being a registered function). But you can also do
this by viewing the phpinfo() output and seeing what formats GD


Our Sponsors

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy