mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-06-05 21:59:19 +02:00
remove a writeexif line when opening weird images, like K9 attachments
This commit is contained in:
@ -61,7 +61,6 @@ class PhotoFragment : ViewPagerFragment() {
|
|||||||
val file = File(context.externalCacheDir, Uri.parse(originalPath).lastPathSegment)
|
val file = File(context.externalCacheDir, Uri.parse(originalPath).lastPathSegment)
|
||||||
out = FileOutputStream(file)
|
out = FileOutputStream(file)
|
||||||
rotated.compress(Bitmap.CompressFormat.JPEG, 100, out)
|
rotated.compress(Bitmap.CompressFormat.JPEG, 100, out)
|
||||||
exif.writeExif(rotated, file.absolutePath, 100)
|
|
||||||
medium.path = file.absolutePath
|
medium.path = file.absolutePath
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
context.toast(R.string.unknown_error_occurred)
|
context.toast(R.string.unknown_error_occurred)
|
||||||
|
Reference in New Issue
Block a user