Search the Community
Showing results for tags 'gd'.
-
Hoping someone can help me with a problem I having with drawing a line graph with gd php mysql Am trying to draw a simple line graph getting data from a MySQL database. attached is the code:- I just get lots of rubbish characters on the screen. If I echo the contents of the fetched data it i...
-
I have created an image using the GD Library use Ajax to change parts of the image. For some reason it just wont print. When I print the image it is only printing the layer of the image that is hard coded. I can save the image then print it but other than that it wont work, it only prints the hard...
-
Even though I literally copied and pasted the code below directly from the php.net manual on gd and image functions, I'm getting a syntax error message "unexpected t_variable" when I try to run the code. The culprit, according to the error message, is line 6 here: $gd = imagecreatetruecolor($x, $y...
- 6 replies
-
- imagecreatetruecolor
- unexpected t_variable
-
(and 1 more)
Tagged with:
-
Spent the day trying to figure out why GD library 2.0 imagejpeg($resource_id,NULL,$quality); wouldn't output my images to the browser after updating PHP from 5.3 to 5.4. Allow me to hopefully save you the trouble. If you've enabled GD library and using an external script to generate image file...
-
Hi Guys Adding text to an image is relatively easy but I need to add text to a number of images on the same page. Is the only way to add the text and save so that I can reload when I need to. The problem arises because there are a number of images (within link tags) which have descriptive text a...
-
Well, I have an image ans I want to write a text on it. The issue is, it is saying, image cannot be displayed because it contains errors. Refer to the screenshot below as attachment. Here the codes: <img src="images/img.jpg" width="500" height="300"> <?php header ("Content-type: im...