https://github.com/ryaa/capacitor-exif
Temporary repository for @capacitor-community/exif
https://github.com/ryaa/capacitor-exif
Last synced: about 16 hours ago
JSON representation
Temporary repository for @capacitor-community/exif
- Host: GitHub
- URL: https://github.com/ryaa/capacitor-exif
- Owner: ryaa
- Created: 2024-07-16T05:07:42.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-07-17T07:41:00.000Z (almost 2 years ago)
- Last Synced: 2025-02-22T13:35:58.437Z (over 1 year ago)
- Language: Swift
- Size: 102 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# @capacitor-community/exif
This plugin offers utility functions for interacting with jpeg exif metadata
## Install
```bash
npm install @capacitor-community/exif
npx cap sync
```
## API
* [`setCoordinates(...)`](#setcoordinates)
* [`getCoordinates(...)`](#getcoordinates)
* [Interfaces](#interfaces)
### setCoordinates(...)
```typescript
setCoordinates(options: SetCoordinatesOptions) => Promise
```
Set the coordinates to the image EXIF metadata.
| Param | Type |
| ------------- | ----------------------------------------------------------------------- |
| **`options`** | SetCoordinatesOptions |
**Since:** 6.0.0
--------------------
### getCoordinates(...)
```typescript
getCoordinates(options: GetCoordinatesOptions) => Promise<{ lat: number; lng: number; } | undefined>
```
Set the coordinates to the image EXIF metadata.
| Param | Type |
| ------------- | ----------------------------------------------------------------------- |
| **`options`** | GetCoordinatesOptions |
**Returns:** Promise<{ lat: number; lng: number; }>
**Since:** 6.0.0
--------------------
### Interfaces
#### SetCoordinatesOptions
| Prop | Type | Description | Since |
| ----------------- | ------------------- | ------------------------------------------------------------------ | ----- |
| **`pathToImage`** | string | The path to the image to set the coordinates to the EXIF metadata. | 6.0.0 |
| **`lat`** | number | The latitude of the image. | 6.0.0 |
| **`lng`** | number | The longitude of the image. | 6.0.0 |
#### GetCoordinatesOptions
| Prop | Type | Description | Since |
| ----------------- | ------------------- | ------------------------------------------------------------------ | ----- |
| **`pathToImage`** | string | The path to the image to set the coordinates to the EXIF metadata. | 6.0.0 |