Skip to content

react native library for converting images to rgb array buffers

License

Notifications You must be signed in to change notification settings

marcinkornek/react-native-image-to-rgb

Repository files navigation

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