title: How to resize Yuv image on android
body: <p>please tell me how can I resize yuv image on android.</p>
  
  <pre><code>ByteArrayOutputStream baos = new ByteArrayOutputStream();
  mCameraView.myuvImage.compressToJpeg(new Rect(0, 0, mCameraView.myuvImage.getWidth(), mCameraView.myuvImage.getHeight()), 100, baos);
  </code></pre>
  
  <p>compressToJpeg method converts yuv image to jpeg. But doesn't resize converted JPEG by compression number when I write</p>
  
  <pre><code>mCameraView.myuvImage.compressToJpeg(new Rect(0, 0, mCameraView.myuvImage.getWidth(), mCameraView.myuvImage.getHeight()), 50, baos);
  </code></pre>