@lulububu/react-native-exif-modifier
v0.1.14
Published
Allows you to modify the exif data of an image and save it.
Downloads
19
Readme
react-native-exif-modifier
react-native-exif-modifier
is a React Native library that allows you to modify the EXIF data of an image and save the
changes. This can be particularly useful for applications that need to manage image metadata.
Installation
To install the package, run:
npm install @lulububu/react-native-exif-modifier
Usage
Import the functions from react-native-exif-modifier and use them to modify EXIF data in your images.
import { saveImageWithUserComment, saveImageWithProperties } from 'react-native-exif-modifier';
// Save image with a user comment
const savedImagePath = await saveImageWithUserComment(base64ImageData, 'Your comment here');
// Modify and save image with new EXIF data
const modifiedImagePath = await saveImageWithProperties(base64ImageData, { /* EXIF properties */ });
Functions
saveImageWithUserComment(base64ImageData: string, userComment: string): Promise<string>
- Saves the image with the provided user comment in the EXIF data.
saveImageWithProperties(base64ImageData: string, properties: ImageProperties): Promise<string>
- Saves the image with modified EXIF properties.
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT