Browse Source

Merge pull request #108 from deltachat/PhotoCompress

deleted comments
nayooti 6 năm trước cách đây
mục cha
commit
729d35bea5
1 tập tin đã thay đổi với 5 bổ sung7 xóa
  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")