Comments (7)
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.
Yeah! Thank you!
We need only Uint8Array. I think so, too.
This library should be implemented.
from piexifjs.
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.
Glad this is on your radar. We've found at BeFunky that FileReader.readAsBinaryString
can be unreliable (it's deprecated in favor of FileReader.readAsArrayBuffer
and 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.
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.
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.
@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)
- Ios exif is null but work on android with same jpg file HOT 1
- Latest npm publish missing files HOT 2
- TypeError: Cannot use 'in' operator to search for '0th' in data:image... HOT 2
- Problem importing 2.0 beta HOT 5
- Problem when running inside cordova HOT 3
- Set latest tag to v1.x on npm HOT 1
- Problem when reading or writing in Chinese HOT 1
- Update piexif version string in v1.0.5
- problem setting 0x9286 EXIF UserComment HOT 1
- Lost / modified fields setting GPS to {}
- Not writing offset of next IFD HOT 1
- Line 55 miss the colon. ; in file LoadSample.html
- 'constants' and 'Tags' missing in npm package
- Is v2.0 still to be released? HOT 3
- 我清除Exif信息 图片怎么还是旋转的 怎么可以不旋转图片
- JPEG QUALITY BY DEFAULT AT 1.0
- Dead HOT 6
- Document how to set GPSHPositioningError
- Supported file formats HOT 3
- Pack Error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from piexifjs.