Skip to content

Commit

Permalink
Change to saving PNG for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
devgeeks committed Sep 4, 2013
1 parent 7ef2550 commit ec8582f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/android/Canvas2ImagePlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,10 @@ private File savePhoto(Bitmap bmp) {
folder = Environment.getExternalStorageDirectory();
}

File imageFile = new File(folder, "Amfi_" + date.toString() + ".jpg");
File imageFile = new File(folder, "c2i_" + date.toString() + ".png");

FileOutputStream out = new FileOutputStream(imageFile);
bmp.compress(Bitmap.CompressFormat.JPEG, 100, out);
bmp.compress(Bitmap.CompressFormat.PNG, 100, out);
out.flush();
out.close();

Expand Down

0 comments on commit ec8582f

Please sign in to comment.