From 101e892cd919de5fabdb8f4ffa6bd7d67203978e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20Gr=C3=B8n=C3=A5s?= Date: Thu, 23 Mar 2023 15:57:41 +0100 Subject: [PATCH] chore: Update image dependency to 4.0.15 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Kristian Grønås --- lib/src/utils/matrix_file.dart | 2 +- pubspec.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/utils/matrix_file.dart b/lib/src/utils/matrix_file.dart index bf4a9575..ba102ea6 100644 --- a/lib/src/utils/matrix_file.dart +++ b/lib/src/utils/matrix_file.dart @@ -259,7 +259,7 @@ class MatrixImageFile extends MatrixFile { height: image.height > image.width ? arguments.maxDimension : null, width: image.width >= image.height ? arguments.maxDimension : null); - final encoded = encodeNamedImage(resized, arguments.fileName); + final encoded = encodeNamedImage(arguments.fileName, resized); if (encoded == null) return null; final bytes = Uint8List.fromList(encoded); return MatrixImageFileResizedResponse( diff --git a/pubspec.yaml b/pubspec.yaml index a46210a8..bbe8f0e0 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -19,7 +19,7 @@ dependencies: html: ^0.15.0 html_unescape: ^2.0.0 http: ^0.13.0 - image: ^3.1.1 + image: ^4.0.15 js: ^0.6.3 markdown: ^4.0.0 matrix_api_lite: ^1.6.1