You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I run the code with CanvasKit and profile mode as outlined here and here
And I have all the nice buttons, I can rotate and select aspect ratios and all, and when I click done I see the correct Rect has been calculated. However the cropped image is not displayed.
I've spent hours debugging and what I've found is that the image contains only 0s. What does that mean?
final bitmap = controller.croppedBitmap();
final bytes = (await bitmap.toByteData())?.buffer.asUint8List();
here, the bytes are all 0 when I print them.
I haven't found a way to use this package on web on Flutter 3.7.9, has anyone else been able to get it to work?
The text was updated successfully, but these errors were encountered:
I used the example code from here: https://pub.dev/packages/crop_image/example and changed the photo to a local jpg asset that I have.
I run the code with CanvasKit and profile mode as outlined here and here
And I have all the nice buttons, I can rotate and select aspect ratios and all, and when I click done I see the correct Rect has been calculated. However the cropped image is not displayed.
I've spent hours debugging and what I've found is that the image contains only 0s. What does that mean?
here, the bytes are all 0 when I print them.
I haven't found a way to use this package on web on Flutter 3.7.9, has anyone else been able to get it to work?
The text was updated successfully, but these errors were encountered: