Beauty Contest Error

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Beauty Contest Error

    Hey there im getting an error when uploading a pic

    Code:
    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
    Code:
    	// 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);

    #2
    Code:
    124390705_emoticon-anime-031.gif' is not a valid JPEG file
    GIF is JPG?
    Nous Ne Dansos Pas, Nous Sommes Le Danse.!

    Comment


      #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!

      Comment

      Working...
      X