Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
haocse committed May 30, 2019
1 parent 0eab21a commit 199c394
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ public static String[] saveToInternalMemory(Bitmap bitmap, String mFileDirectory
try {
FileOutputStream mFileOutputStream = new FileOutputStream(mPath);
//Compress method used on the Bitmap object to write image to output stream
bitmap.compress(Bitmap.CompressFormat.JPEG, mQuality, mFileOutputStream);
bitmap.compress(Bitmap.CompressFormat.PNG, mQuality, mFileOutputStream);
mFileOutputStream.close();
} catch (Exception e) {
Log.e(TAG, e.getMessage(), e);
Expand Down

0 comments on commit 199c394

Please sign in to comment.