Skip to content

Commit 257ca32

Browse files
committed
exif metadata
1 parent b370d90 commit 257ca32

3 files changed

Lines changed: 294 additions & 228 deletions

File tree

lib/api/SessionAPI.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ void savePreferences(Map<String, dynamic> status, {
111111
if(API.prefs.getDouble("portrait_image_count") == null) API.prefs.setDouble("portrait_image_count", 4);
112112
if(API.prefs.getDouble("landscape_image_count") == null) API.prefs.setDouble("landscape_image_count", 6);
113113
if(API.prefs.getBool("show_thumbnail_title") == null) API.prefs.setBool("show_thumbnail_title", false);
114+
if(API.prefs.getBool("remove_metadata") == null) API.prefs.setBool("remove_metadata", false);
114115
saveStatus(status);
115116
}
116117

lib/services/upload/Uploader.dart

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,12 @@ class Uploader {
6666
for(var element in photos) {
6767
uploadStatusProvider.status = true;
6868

69-
70-
XFile photo = await testCompressAndGetFile(element);
69+
XFile photo;
70+
if (API.prefs.getBool("remove_metadata")) {
71+
photo = await testCompressAndGetFile(element);
72+
} else {
73+
photo = element;
74+
}
7175

7276
Response response = await uploadChunk(context, photo, category, info,
7377
(progress) {

0 commit comments

Comments
 (0)