title: Android how to convert a png format image to jpeg format without loss quality
body: <p>I develop an app which involves a step of uploading image to server.But the server only support jpeg format image,so I have to convert the png format images picked or captured by users on client side.So I use the follow codes do this image format transformation:</p>
  
  <pre><code>bitmap.compress(Bitmap.CompressFormat.JPEG, 100, outputStream);
  </code></pre>
  
  <p>but some images will loss quality,compared to png format and the eyes can see the loss.Does this method has some bugs?Are there some good methods to do png to jpeg transformation without loss quality in Android?</p>