Beauty Contest Error

Started on the old forum in July 2009 · view the original in the archive · old links redirect here

2 replies · 453 views · started 17 years ago · 1 min read

2 participants
riderz Lead · 975 posts #1

Hey there im getting an error when uploading a pic

Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: gd-jpeg: JPEG library reports unrecoverable error: in /home/waplive/public_html/chat/beauty_contest.php on line 40

Warning: imagecreatefromjpeg() [function.imagecreatefromjpeg]: 'http://chat.waplive.co.za/gallery/124390705_emoticon-anime-031.gif' is not a valid JPEG file in /home/waplive/public_html/chat/beauty_contest.php on line 40

Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /home/waplive/public_html/chat/

here are the part that i get error on

	// Creating the Canvas
	$newImg= imagecreatetruecolor($width, $height);
	$source = imagecreatefromjpeg($image);

	// Resizing our image to fit the canvas
	imagecopyresampled($newImg, $source, 0, 0, 0, 0, $width, $height, $width_orig, $height_orig);

	// Outputs a jpg image, you could change this to gif or png if needed
	$res = imagejpeg($newImg, $target, $quality);
	imagedestroy($newImg);

Jacques jacques@gw-designs.co.za http://coding.biz.tm Come join and lets make it a place to learn all the noobies how to code


NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH

Vayne Developer · 106 posts #2
124390705_emoticon-anime-031.gif' is not a valid JPEG file

GIF is JPG? 🙂

Nous Ne Dansos Pas, Nous Sommes Le Danse.!

riderz Lead · 975 posts #3

lol ok tanx in the beauty contest after uploading pic when go to main page it say

There is no participant for this category!


Jacques jacques@gw-designs.co.za http://coding.biz.tm Come join and lets make it a place to learn all the noobies how to code


NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close