Browse Source

Merge pull request #108 from deltachat/PhotoCompress

deleted comments
nayooti 6 years ago
parent
commit
729d35bea5
1 changed files with 5 additions and 7 deletions
  1. 5 7
      deltachat-ios/Coordinator/AppCoordinator.swift

+ 5 - 7
deltachat-ios/Coordinator/AppCoordinator.swift

@@ -419,13 +419,11 @@ class ChatViewCoordinator: Coordinator {
 				DispatchQueue.global().async {
 					if let compressedImage = image?.dcCompress() {
 						// at this point image is compressed by 85% by default
-						let pixelSize = compressedImage.imageSizeInPixel()
-						let width = Int32(exactly: pixelSize.width)!
-						let height =  Int32(exactly: pixelSize.height)!
-//						let width = Int32(exactly: compressedImage.size.width)!
-//						let height = Int32(exactly: compressedImage.size.height)!
-						print("CompressImage width: \(width)")
-						print("CompressImage height: \(height)")
+//						let pixelSize = compressedImage.imageSizeInPixel()
+//						let width = Int32(exactly: pixelSize.width)!
+//						let height =  Int32(exactly: pixelSize.height)!
+						let width = Int32(exactly: compressedImage.size.width)!
+						let height = Int32(exactly: compressedImage.size.height)!
 						let path = Utils.saveImage(image: compressedImage)
 						let msg = dc_msg_new(mailboxPointer, DC_MSG_IMAGE)
 						dc_msg_set_file(msg, path, "image/jpeg")