Giter VIP home page Giter VIP logo

Comments (7)

patrickroberts avatar patrickroberts commented on June 19, 2024 2

According to this chart, all modern browsers (not just major) fully support TypedArray. Even IE >=10 supports everything except Uint8ClampedArray, but I can just use Uint8Array to include IE 10 support.

And according to this other chart, Node.js has fully supported TypedArray since 0.12, which is very old. The only features unsupported were the ones pertaining to TypedArray and ES6 syntax, which obviously didn't gain support until around 4.0, but that can easily be avoided in an implementation.

from piexifjs.

hMatoba avatar hMatoba commented on June 19, 2024 1

Yeah! Thank you!
We need only Uint8Array. I think so, too.
This library should be implemented.

from piexifjs.

hMatoba avatar hMatoba commented on June 19, 2024

Thanks for suggestion.

If latest stable browsers and nodejs support for TypedArrays, I decide to support for TypedArrays. When I started this library, browsers didn't support for it.

I think that this library should choose "just check the type of the input and act accordingly".

from piexifjs.

micahjon avatar micahjon commented on June 19, 2024

Glad this is on your radar. We've found at BeFunky that FileReader.readAsBinaryString can be unreliable (it's deprecated in favor of FileReader.readAsArrayBufferand sometimes fails in Chrome on Mac), and FileReader.readAsDataURL (base64) is slow.

Supporting Uint8Array would allow us to use FileReader.readAsArrayBuffer which is both fast and reliable in all browsers.

from piexifjs.

fatso83 avatar fatso83 commented on June 19, 2024

This would potentially also opening up for minimal reading: only reading file data incrementally up until the exif data ends. Currently one has to make an educated guess at a decent max size to stop reading, like mentioned here.

from piexifjs.

mheskol avatar mheskol commented on June 19, 2024

I second this suggestion and say that TypedArrays became widely used facility to handle byte data. The support for it is almost universal nowadays.
Any plans to adding support for it?

from piexifjs.

fatso83 avatar fatso83 commented on June 19, 2024

@mheskol This library is dead, ref #78. If you need the functionality, start a fork, implement and publish it to NPM to to share it with the world 🚀 If you do not need write-support, ExifReader is in active development and is maintained.

from piexifjs.

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.