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.
To install the package, run:
npm install @lulububu/react-native-exif-modifier
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 */ });
saveImageWithUserComment(base64ImageData: string, userComment: string): Promise<string>
saveImageWithProperties(base64ImageData: string, properties: ImageProperties): Promise<string>
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT