/capacitor-exif

Temporary repository for @capacitor-community/exif

Primary LanguageSwift

@capacitor-community/exif

This plugin offers utility functions for interacting with jpeg exif metadata

Install

npm install @capacitor-community/exif
npx cap sync

API

setCoordinates(...)

setCoordinates(options: SetCoordinatesOptions) => Promise<void>

Set the coordinates to the image EXIF metadata.

Param Type
options SetCoordinatesOptions

Since: 6.0.0


getCoordinates(...)

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