mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 15:45:11 +00:00
Remove more DTCoreText/Foundation references as they are no longer directly imported or used
This commit is contained in:
@@ -350,9 +350,10 @@ struct MediaUploadingPreprocessor {
|
||||
throw .failedGeneratingImageThumbnail(error)
|
||||
}
|
||||
|
||||
guard let thumbnail = try? UIImage(contentsOf: thumbnailURL, cachePolicy: .useProtocolCachePolicy) else {
|
||||
guard let thumbnail = UIImage(contentsOfFile: thumbnailURL.path(percentEncoded: false)) else {
|
||||
throw .failedGeneratingImageThumbnail(nil)
|
||||
}
|
||||
|
||||
let blurhash = thumbnail.blurHash(numberOfComponents: (3, 3))
|
||||
|
||||
return .init(url: thumbnailURL, height: thumbnail.size.height, width: thumbnail.size.width, mimeType: "image/jpeg", blurhash: blurhash)
|
||||
|
||||
Reference in New Issue
Block a user