Skip to content

Commit

Permalink
chore: readme
Browse files Browse the repository at this point in the history
  • Loading branch information
lodev09 committed Mar 14, 2024
1 parent 28048c8 commit bd95501
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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)
```
Expand All @@ -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.
Expand Down

0 comments on commit bd95501

Please sign in to comment.