Update native_imaging

This commit is contained in:
Lukas Lihotzki 2020-10-12 11:56:20 +02:00
parent e77d5a6dca
commit 1b1dfc7c81
2 changed files with 5 additions and 5 deletions

View File

@ -18,8 +18,8 @@ Future<MatrixImageFile> resizeImage(MatrixImageFile file,
try {
final nativeImg = native.Image();
await nativeImg.loadEncoded(file.bytes);
file.width = nativeImg.width();
file.height = nativeImg.height();
file.width = nativeImg.width;
file.height = nativeImg.height;
args = _IsolateArgs(
width: file.width, height: file.height, bytes: file.bytes, max: max);
nativeImg.free();
@ -96,8 +96,8 @@ Future<_IsolateResponse> _isolateFunction(_IsolateArgs args) async {
final ret = _IsolateResponse(
blurhash: blurhash,
jpegBytes: jpegBytes,
width: nativeImg.width(),
height: nativeImg.height());
width: nativeImg.width,
height: nativeImg.height);
nativeImg.free();

View File

@ -553,7 +553,7 @@ packages:
description:
path: "."
ref: master
resolved-ref: bd24832f96537447174aa34ba78eaed7ff05bb8e
resolved-ref: "7fef2565e4ab0c3f6a0e0ac19a77c30ea6778e16"
url: "https://gitlab.com/famedly/libraries/native_imaging.git"
source: git
version: "0.0.1"