Open iquirino opened 2 weeks ago
Hello guys, I've catch a new issue/bug with the new version 4.2.0.
I'm having issues to crop images. Using the following code results in an empty image. Rollback version to 4.1.7 solved the issue.
final cmd = img.Command() ..decodeImage(await httpResponse.stream.toBytes()) ..trim(mode: img.TrimMode.transparent); await cmd.executeCommand(); final croppedImage = await cmd.getImage(); if (croppedImage == null) { return HttpGetResponse(httpResponse); } final croppedImageBytes = img.encodePng(croppedImage);
Image used to crop:
https://front.epossible.com.br/public/assets/6682c14170fa73490e0bf0e4/logo.png
Thank you!
I found a solution to this: https://github.com/brendan-duncan/image/pull/662
Hello guys, I've catch a new issue/bug with the new version 4.2.0.
I'm having issues to crop images. Using the following code results in an empty image. Rollback version to 4.1.7 solved the issue.
Image used to crop:
https://front.epossible.com.br/public/assets/6682c14170fa73490e0bf0e4/logo.png
Thank you!