diff --git a/SharingLib/src/main/java/com/abdul/sharinglib/ShareUtil.java b/SharingLib/src/main/java/com/abdul/sharinglib/ShareUtil.java index b7b1637..a55982c 100644 --- a/SharingLib/src/main/java/com/abdul/sharinglib/ShareUtil.java +++ b/SharingLib/src/main/java/com/abdul/sharinglib/ShareUtil.java @@ -57,7 +57,7 @@ private static Uri convertUriBitmapUtil(Context context, Uri uri) { bitmap = MediaStore.Images.Media.getBitmap(context.getContentResolver(), imageUri); } ByteArrayOutputStream bytes = new ByteArrayOutputStream(); - bitmap.compress(Bitmap.CompressFormat.JPEG, 100, bytes); + bitmap.compress(Bitmap.CompressFormat.PNG, 100, bytes); String path = MediaStore.Images.Media.insertImage(context.getContentResolver(), bitmap, "Title", null); imageUri = Uri.parse(path); } catch (IOException e) {