Remove more DTCoreText/Foundation references as they are no longer directly imported or used

This commit is contained in:
Stefan Ceriu
2026-04-16 13:03:56 +03:00
parent d43089ee59
commit a89b33ee43
4 changed files with 2 additions and 99 deletions
@@ -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)