title: Resize Image using Opencv Python and preserving the quality
body: <p>I would like to resize images using OpenCV python library.
  It works but the quality of the image is pretty bad. </p>
  
  <p>I must say, I would like to use these images for a photo sharing website, so the quality is a must.</p>
  
  <p>Here is the code I have for the moment:</p>
  
  <pre><code>[...]
  
  _image = image
  height, width, channels = _image.shape
  target_height = 1000
  scale = height/target_height
  _image = cv2.resize(image, (int(width/scale), int(height/scale)), interpolation = cv2.INTER_AREA)
  cv2.imwrite(local_output_temp_file,image, (cv2.IMWRITE_JPEG_QUALITY, 100))
  [...]
  </code></pre>
  
  <p>I don't know if there are others parameters to be used to specify the quality of the image.</p>
  
  <p>Thanks.</p>