react-native-image-to-rgb
v0.1.0
Published
library for converting images to rgb array buffers
Downloads
7,295
Maintainers
Readme
react-native-image-to-rgb
library for converting images to rgb array buffers. This may be useful eg. if you want to detect what's on the image using https://github.com/mrousavy/react-native-fast-tflite. Library accepts both local and remote URIs.
Installation
npm install react-native-image-to-rgb
Usage
import { convertToRGB } from 'react-native-image-to-rgb';
// ...
const result = await convertToRGB(imageUri);
// result = [255, 254, 0, .....]
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT
Made with create-react-native-library