Brendan Duncan

Results 398 comments of Brendan Duncan
trafficstars

You could try the trim function, https://pub.dev/documentation/image/latest/image/trim.html.

My guess is the CameraController is saving to an image format, not raw RGB bytes. Do you still have an issue if you use img.decodeImage(bytes)?

You're use of copyCrop is correct, other than there's no need to make a copy of the source image, ```dart final picture = img.copyCrop( slika!, // No need to make...

If you have your backgroundImage, and watermarkImage, then you can draw the watermark image onto the background image at pixel coordinates x, y with: ```dart compositeImage(backgroundImage, watermarkImage, dstX: x, dstY:...

I just test this without issue as ```dart final bytes = File('test/_data/png/source.zip').readAsBytesSync(); final input = InputStream(bytes.buffer.asByteData()); final a = ZipDecoder().decodeBuffer(input); final content = a[0].content as Uint8List; final png = Image.decodePng(content);...

Unless _UmodifiableUint8ArrayView is another name for `List`...in which case I did remove the old List interface to simplify things. Maybe you can try `var _bmp = Image.decodeImage(Uint8List.fromList(encryptionArchive[0].content));`

I'm glad you found a solution but I'm curious why you got the Unmodifiable array, since I wrote the Archive library too and don't use that anywhere. I'm in the...

Yeah rar's been asked for. Rar is a weird format, I wish it had died in the 90s, and I have to pick my battles with not enough time :(

I'll look into this as soon as I get a chance.

I did add some notes about that to https://github.com/brendan-duncan/image/blob/main/doc/image_data.md. I have a personal TODO for improving dartdoc comments in the code, but now work has picked up again and I'll...