Skip to content

Instantly share code, notes, and snippets.

@ebbnormal
Created February 6, 2017 19:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ebbnormal/e45ec9376abded9a6fc38b1dff2363a5 to your computer and use it in GitHub Desktop.
Save ebbnormal/e45ec9376abded9a6fc38b1dff2363a5 to your computer and use it in GitHub Desktop.
if (exif.getAllTags() != null) {
exif.writeExif(out, os);
} else {
ExifInterface exif2 = new ExifInterface();
exif2.addDateTimeStampTag(exif.TAG_DATE_TIME_ORIGINAL, Calendar.getInstance().getTime().getTime(), TimeZone.getDefault());
exif2.writeExif(out, os);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment