From bd9550166cc86404549e7da0dfc0eedb93740b79 Mon Sep 17 00:00:00 2001 From: lodev09 Date: Thu, 14 Mar 2024 08:34:40 +0800 Subject: [PATCH] chore: readme --- README.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index a95b73a..cd51e0d 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # @lodev09/react-native-exify -A simple library to read and write Exif metadata from images in React Native. +A simple library to read and write image Exif metadata in React Native. ## Features - Read Exif data from an image @@ -25,7 +25,6 @@ import { writeAsync, readAsync, ExifTags } from '@lodev09/react-native-exify'; // ... const uri = 'file://path/to/image.jpg' -// Read exif from image via URI const tags = await readAsync(uri) console.log(tags) ``` @@ -34,11 +33,13 @@ console.log(tags) ```ts const uri = 'file://path/to/image.jpg' const newTags: ExifTags = { - Make: 'Apple', - Model: 'iPhone 12 Pro Max', - Software: '14.4.2' + GPSLatitude: 69.696969, + GPSLongitude: 69.696969, + UserComment: 'Someone wrote GPS here!', } -const response = await writeAsync(uri, newTags) + +const result = await writeAsync(uri, newTags) +console.log(result) ``` 💡 Note: On IOS, writing exif into an Asset file will duplicate the image.