Closed lukehutch closed 1 year ago
This library was written long before Flutter existed.
Makes sense. Do you have any interest in adding Flutter acceleration support for image
operations running in Flutter?
Regardless of interest, unfortunately I just don't have any time. I've never actually used Flutter, other than answering an occasional support question with these Dart libraries I wrote a long time ago. I maintain this library because no one else will, and I feel bad I don't have time to do more.
One of the challenging aspects of Dart & Flutter is cross platform support. People use the library for mobile, web, and server applications. So adding features that are not written in pure Dart become more challenging.
But I agree, adding native implemented optimizations for commonly used operations would be wonderful.
Sorry, this bug was filed before I understood that image
is a non-Flutter, Dart-pure project. I'll close this. Thanks!
Why on earth does
image
implement image scaling, cropping, etc. using custom Dart code, rather than relying on off-screenCanvas
rendering (which is orders of magnitude faster)?Also, why does
image
even implement its own jpeg/png codecs, when that is built into the Flutter platform?The only reason I can think of is that
image
is for use serverside, for a non-Flutter project -- but then couldn't a fasterCanvas
-derived version of each operator be used when runningimage
code on Flutter?