title: resize image on upload with verot class.upload.php
body: <p>i want to resize my images on upload i found on the web  verot class.upload.php
  but unfortunately it doesn't work with me , no uploads , no resizes , ..
  so my question is does this api requires some sort of installations,
  cause i have only uploaded class.upload.php to my server
  and my function is like that</p>
  
  <pre><code>public  function myImageR()
                       {
  
  
          $foo = new Upload($_FILES['img']); 
  if ($foo-&gt;uploaded) {
     // save uploaded image with no changes
     $foo-&gt;Process('/public/images/aa/');
     if ($foo-&gt;processed) {
       $a = true;
     } else {
       $a = false;
     }
     // save uploaded image with a new name
     $foo-&gt;file_new_name_body = 'foo';
     $foo-&gt;Process('/public/images/aa/');
     if ($foo-&gt;processed) {
     $a = true;
     } else {
       $a = false;
     }   
     // save uploaded image with a new name,
     // resized to 100px wide
     $foo-&gt;file_new_name_body = 'image_resized';
     $foo-&gt;image_resize = true;
     $foo-&gt;image_convert = gif;
     $foo-&gt;image_x = 100;
     $foo-&gt;image_ratio_y = true;
     $foo-&gt;Process('/public/images/aa/');
     if ($foo-&gt;processed) {
      $a = true;
       $foo-&gt;Clean();
     } else {
      $a = false;
     } 
  }   
  
                       }
  </code></pre>
  
  <p>but it it doesn't work at all i am working on localhost with xammp</p>