An open API service indexing awesome lists of open source software.

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

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 |