Giter Club home page Giter Club logo

Comments (3)

btastic avatar btastic commented on August 15, 2024

Okay, so.. what is the goal of this feature request?

We can load an image into memory using native methods, but I can't return a reference or an array back to dart, since a reference would only work with native tools, and an array would mean copying the whole array in the same fashion the dart image package would do.

from flutter_native_image.

acidjazz avatar acidjazz commented on August 15, 2024

I'm just looking for a way to get a File into an Image w/out having to isolate and wait 10 seconds, so far the only way I can see to do that is with decodeImage()

from flutter_native_image.

btastic avatar btastic commented on August 15, 2024

Well the problem is that a File or an Image is just something that holds onto a List<int> internally. So we still have to manage the way from decoding an image on their native platforms, and transferring the bytes back to dart.

There is no magic function that will make it go fast. Once you want the bytes within a dart object, the language (VM) will take time to copy the bytes to the dart counterpart (List<int>)

I am not a dart expert by any means, but thats what I read from the other repository's guys answer to the problem. Reading the bytes and copying it into an array. Thats not going to be fast, as far as I know..

from flutter_native_image.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.