brendan-duncan / image

Dart Image Library for opening, manipulating, and saving various different image file formats.
MIT License
1.17k stars 265 forks source link

Image.getBytes() very very slow #614

Closed Mike-3 closed 7 months ago

Mike-3 commented 8 months ago

In the current version the function .getBytes() very slow. About 4s per image (Image(700, 467, uint8, 4)). This wasn't the case in previous versions. Since I'm comparing images from an animated gif (e.g. with over 300 images) it takes a very, very long time.

I'll attach my test project morse test

Mike-3 commented 8 months ago

Small correction, I have the 4s for .getBytes for 2 images that compare with each other.

brendan-duncan commented 8 months ago

Thanks for letting me know! I don't know how I didn't see that embarrassing bug before, causing it to always want to convert the image bytes. I just pushed the fix, and will get it published to the next version shortly.

Mike-3 commented 7 months ago

Thanks, for the fast fix.

brendan-duncan commented 7 months ago

Published to 4.1.7