mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
@@ -319,7 +319,7 @@ struct MediaUploadingPreprocessor {
|
||||
/// - targetSize: maximum resulting size
|
||||
/// - Returns: the resized image
|
||||
private func resizeImage(withSource imageSource: CGImageSource, targetSize: CGSize) async -> Result<UIImage, MediaUploadingPreprocessorError> {
|
||||
let maximumSize = min(targetSize.height, targetSize.width)
|
||||
let maximumSize = max(targetSize.height, targetSize.width)
|
||||
|
||||
let options: [NSString: Any] = [
|
||||
// The maximum width and height in pixels of a thumbnail.
|
||||
|
||||
Reference in New Issue
Block a user