title: Uploading photo without changing its original size does not function
body: <pre><code>$resizeObj = new resize($routePath.$imgPathLease.$photosrc);
  
  $resizeObj-&gt;resizeImage(1024, 768, 'auto');
  $resizeObj-&gt;saveImage($routePath.$imgPathLease.'detail-'.$leaseid.'-'.$uploadnum.'-'.$photosrc, 80);
  
  $detailImg = $leaseid.'-'.$uploadnum.'-'.$photosrc;
  $mcProperty-&gt;InsertLeasePhoto($db, $leaseid, $detailImg);
  
  $resizeObj-&gt;resizeImage(300, 300, 'crop');
  $resizeObj-&gt;saveImage($routePath.$imgPathLease.'thumb-'.$leaseid.'-'.$uploadnum.'-'.$photosrc, 80);
  </code></pre>
  
  <p>Basically the code above functions as am upload for a larger image and a cropped our 300x300 thumbnail version of itself.</p>
  
  <p>What I want is the first upload will follow through without any resizing.</p>
  
  <p>My issue is that if I take out </p>
  
  <blockquote>
    <p><strong>$resizeObj->resizeImage(1024, 768, 'auto');</strong></p>
  </blockquote>
  
  <p>, the larger image does not upload. So im assuming I will just keep that line for this function to work.</p>
  
  <p>Also, the photo name is what i am aiming for thats why the saveImage code exists.</p>
  
  <p>Is there any code that can go like this?:</p>
  
  <blockquote>
    <p>$resizeObj->resizeImage("width=100%", "width=100%", 'auto');</p>
  </blockquote>
  
  <p>Thanks</p>