diff --git a/lib/utils/resize_image.dart b/lib/utils/resize_image.dart index eab1db85..3bfe81a6 100644 --- a/lib/utils/resize_image.dart +++ b/lib/utils/resize_image.dart @@ -1,8 +1,5 @@ import 'dart:io'; -import 'dart:typed_data'; -import 'package:blurhash_dart/blurhash_dart.dart'; -import 'package:image/image.dart'; import 'package:matrix/matrix.dart'; import 'package:path_provider/path_provider.dart'; import 'package:video_compress/video_compress.dart'; @@ -54,8 +51,3 @@ extension ResizeImage on MatrixFile { return null; } } - -Future createBlurHash(Uint8List file) async { - final image = decodeImage(file)!; - return BlurHash.encode(image, numCompX: 4, numCompY: 3); -} diff --git a/pubspec.lock b/pubspec.lock index eeedcedd..e1999b93 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -929,7 +929,7 @@ packages: source: hosted version: "4.0.2" image: - dependency: "direct main" + dependency: transitive description: name: image sha256: "02bafd3b4f399bfeb10034deba9753d93b55ce41cd0c4d3d8b355626f80e5b32" diff --git a/pubspec.yaml b/pubspec.yaml index 12ee3775..90a7f290 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -51,7 +51,6 @@ dependencies: hive: ^2.2.3 hive_flutter: ^1.1.0 http: ^0.13.4 - image: ^3.1.1 image_picker: ^0.8.4+8 intl: any just_audio: ^0.9.30