Jump to content

jonstu

New Members
  • Posts

    8
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

jonstu's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. hahaha haaha .... I am going to tell my friends about you guys and this very helpful forum. Heartfelt Thanks again!
  2. It worked like a charm Barand.... I love You guys both of you barand and Willpower. Thankyou for saving my life. Love you dudes!!
  3. okay, i tried replacing $HTTP_POST_FILES with $_POST but no luck. same error i am worried now... the code now is looking like: $resized = imagecreatetruecolor(450, 450); if($_POST['userfile']['type'] == 'image/png') $original = imagecreatefrompng($_POST['userfile']['tmp_name']); if($_POST['userfile']['type'] == 'image/jpg' || $_POST['userfile']['type'] == 'image/jpeg' || $_POST['userfile']['type'] == 'image/pjpeg') $original = imagecreatefromjpeg($_POST['userfile']['tmp_name']); if($_POST['userfile']['type'] == 'image/gif') $original = imagecreatefromgif($_POST['userfile']['tmp_name']); if($_POST['userfile']['type'] == 'image/bmp') $original = imagecreatefromwbmp($_POST['userfile']['tmp_name']); imagecopyresampled($resized, $original, 0, 0, 0, 0, $nwidth, $nheight, $owidth, $oheight); please help. ???
  4. here are the changes till now that i made as u guys suggested: if($HTTP_POST_FILES['userfile']['type'] == 'image/jpg' || $HTTP_POST_FILES['userfile']['type'] == 'image/pjpeg' || $HTTP_POST_FILES['userfile']['type'] == 'image/jpeg') $original = imagecreatefromjpeg($HTTP_POST_FILES['userfile']['tmp_name']); is there any problem in this....?
  5. okay, I made the change as suggested but now it is showing me the error in mozilla firefox and opera (which were working fine before change). IE seems to do the resizing but makes the image quality a junk. The error is still the same but this time its other browsers and not IE. please help. error: imagecopyresampled(): supplied argument is not a valid Image resource on line 134 Warm Regards. you guys are a life saver!
  6. here is the simple code: $resized = imagecreatetruecolor(450, 450); if($HTTP_POST_FILES['userfile']['type'] == 'image/png') $original = imagecreatefrompng($HTTP_POST_FILES['userfile']['tmp_name']); if($HTTP_POST_FILES['userfile']['type'] == 'image/jpg' || $HTTP_POST_FILES['userfile']['type'] == 'image/jpeg') $original = imagecreatefromjpeg($HTTP_POST_FILES['userfile']['tmp_name']); if($HTTP_POST_FILES['userfile']['type'] == 'image/gif') $original = imagecreatefromgif($HTTP_POST_FILES['userfile']['tmp_name']); if($HTTP_POST_FILES['userfile']['type'] == 'image/bmp') $original = imagecreatefromwbmp($HTTP_POST_FILES['userfile']['tmp_name']); imagecopyresampled($resized, $original, 0, 0, 0, 0, $nwidth, $nheight, $owidth, $oheight); thanks for your reply.
  7. hey people, I am running a image uploading script on my domain. It seems to do the job fine in firefox and opera browsers BUT in the internet explorer, it gives me this error. imagecopyresampled(): the given argument is not a valid image resource. My question why MS IE is not letting my script run successfully while other browsers seem to let it work fine. I have been looking for help all around and it seems this forum might rescue me. please help. why is it not working in IE only?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.