marinofaggiana 4 år sedan
förälder
incheckning
d27f636673

+ 7 - 7
Nextcloud.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

@@ -6,17 +6,17 @@
         "repositoryURL": "https://github.com/Alamofire/Alamofire",
         "state": {
           "branch": null,
-          "revision": "becd9a729a37bdbef5bc39dc3c702b99f9e3d046",
-          "version": "5.2.2"
+          "revision": "9e0328127dfb801cefe8ac53a13c0c90a7770448",
+          "version": "5.4.0"
         }
       },
       {
         "package": "NCCommunication",
         "repositoryURL": "https://github.com/nextcloud/ios-communication-library/",
         "state": {
-          "branch": "develop",
-          "revision": "5d3d5fbed17b1be5a078acd9dc144eedc71fd8e9",
-          "version": null
+          "branch": null,
+          "revision": "3abaa65cf70f7dfa8a7d0df2277d4eda14d7cfd1",
+          "version": "0.84.0"
         }
       },
       {
@@ -60,8 +60,8 @@
         "repositoryURL": "https://github.com/yahoojapan/SwiftyXMLParser",
         "state": {
           "branch": null,
-          "revision": "0ca0e992ce0135169c715a6580b99f3e99c503e7",
-          "version": "5.2.1"
+          "revision": "ec7f183642adf429babd867d1a38c5c6912408ba",
+          "version": "5.3.0"
         }
       }
     ]

+ 5 - 5
iOSClient/Main/Create cloud/NCCreateFormUploadScanDocument.swift

@@ -666,17 +666,17 @@ class NCCreateFormUploadScanDocument: XLFormViewController, NCSelectDelegate, NC
 
         switch quality {
         case .low:
+            baseHeight *= 1
+            baseWidth *= 1
+            compressionQuality = 0.3
+        case .medium:
             baseHeight *= 2
             baseWidth *= 2
-            compressionQuality = 0.4
-        case .medium:
-            baseHeight *= 3
-            baseWidth *= 3
             compressionQuality = 0.6
         case .high:
             baseHeight *= 4
             baseWidth *= 4
-            compressionQuality = 0.8
+            compressionQuality = 0.9
         }
         
         var newHeight = Float(image.size.height)