title: A thin whiteline is been added when resize the image
body: <p>When we resizing the image (after downloading and before storing that in document directory), by the following code:</p>
  
  <pre><code>-(UIImage *)resizeImage:(UIImage *)image withSize:(CGSize)newSize
  {
      float actualHeight = image.size.height;
      float actualWidth = image.size.width;
      float imgRatio = actualWidth/actualHeight;
      float maxRatio = newSize.width/newSize.height;
  
      if(imgRatio!=maxRatio){
          if(imgRatio &lt; maxRatio){
              imgRatio = newSize.width / actualHeight;
              actualWidth = imgRatio * actualWidth;
              actualHeight = newSize.width;
          }
          else{
              imgRatio = newSize.height / actualWidth;
              actualHeight = imgRatio * actualHeight;
              actualWidth = newSize.height;
          }
      }
      CGRect rect = CGRectMake(0.0, 0.0, actualWidth, actualHeight);
      UIGraphicsBeginImageContext(rect.size);
      [image drawInRect:rect];
      UIImage *resizedImage = UIGraphicsGetImageFromCurrentImageContext();
      UIGraphicsEndImageContext();
      //[resizedImage release];
      return [resizedImage autorelease];
  }
  </code></pre>
  
  <p>this produce a re sized image with the thin white line added towards it's orientation(as if image is landscape white line is added to it's bottom and if image is portrait white line is added to it's right hand).</p>
  
  <p>please tell that, how to get rid of that white line?</p>
  
  <p>Thank you.</p>