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:
bitmap.compress(Bitmap.CompressFormat.JPEG, 100, outputStream);
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?