Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nawatts/read-image-data
Read ImageData from a Blob
https://github.com/nawatts/read-image-data
image-processing
Last synced: 5 days ago
JSON representation
Read ImageData from a Blob
- Host: GitHub
- URL: https://github.com/nawatts/read-image-data
- Owner: nawatts
- License: mit
- Created: 2016-08-02T21:48:19.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-08-02T21:51:14.000Z (over 8 years ago)
- Last Synced: 2024-04-14T05:26:21.545Z (9 months ago)
- Topics: image-processing
- Language: JavaScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# read-image-data
Read [ImageData](https://developer.mozilla.org/en-US/docs/Web/API/ImageData) from a
[Blob](https://developer.mozilla.org/en-US/docs/Web/API/Blob).```JavaScript
import readImageData from 'read-image-data';document.getElementById('file-input').addEventListener('change', (e) => {
readImageData(e.target.files[0]).then((imageData) => {
console.log(imageData);
});
});
```### Reference
* [ImageData](https://developer.mozilla.org/en-US/docs/Web/API/ImageData)
* [CanvasRenderingContext2D](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D)
* [FileReader](https://developer.mozilla.org/en-US/docs/Web/API/FileReader)
* [Blob](https://developer.mozilla.org/en-US/docs/Web/API/Blob/Blob)