---
description: Capacitor plugin to losslessly read, write, and strip EXIF metadata such as GPS position and camera details from image files, including HEIC. Supports Android and iOS.
title: Capacitor Exif Plugin for Android & iOS - Capawesome
image: https://capawesome.io/docs/assets/images/social/sdks/capacitor/exif.png
---

<!doctype html> 

[Skip to content ](#capacitor-exif-plugin) 

[🔐 Introducing the **Capacitor Vault** plugin — store secrets behind biometrics or a device passcode. ](/blog/announcing-the-capacitor-vault-plugin/) 

* [ SDKs ](/docs/sdks/)
* [ iOS ](#ios)
* [ Configuration ](#configuration)
* [ Usage ](#usage)
* [ API ](#api)
* [ Format Support ](#format-support)
* [ Lossless Metadata Writes ](#lossless-metadata-writes)
* [ Privacy: Strip Metadata Before Upload ](#privacy-strip-metadata-before-upload)
* [ Limitations ](#limitations)
* [ Changelog ](#changelog)
* [ License ](#license)
* [ Facebook Sign-In ](/docs/sdks/capacitor/facebook-sign-in/)
* [ File Compressor ](/docs/sdks/capacitor/file-compressor/)
* [ File Opener ](/docs/sdks/capacitor/file-opener/)
* [ File Picker ](/docs/sdks/capacitor/file-picker/)
* [ Firebase ](/docs/sdks/capacitor/firebase/)
* [ Formbricks ](/docs/sdks/capacitor/formbricks/)
* [ Geocoder ](/docs/sdks/capacitor/geocoder/)
* [ Google Sign-In ](/docs/sdks/capacitor/google-sign-in/)
* [ Grafana Faro ](/docs/sdks/capacitor/grafana-faro/)
* [ Gyroscope ](/docs/sdks/capacitor/gyroscope/)
* [ Haptics ](/docs/sdks/capacitor/haptics/)
* [ Home Indicator ](/docs/sdks/capacitor/home-indicator/)
* [ In-App Browser ](/docs/sdks/capacitor/in-app-browser/)
* [ Install Referrer ](/docs/sdks/capacitor/install-referrer/)
* [ Keep Awake ](/docs/sdks/capacitor/keep-awake/)
* [ libSQL ](/docs/sdks/capacitor/libsql/)
* [ Light Sensor ](/docs/sdks/capacitor/light-sensor/)
* [ Live Update ](/docs/sdks/capacitor/live-update/)
* [ Localization ](/docs/sdks/capacitor/localization/)
* [ Mail Composer ](/docs/sdks/capacitor/mail-composer/)
* [ Managed Configurations ](/docs/sdks/capacitor/managed-configurations/)
* [ Maps Launcher ](/docs/sdks/capacitor/maps-launcher/)
* [ Media Session ](/docs/sdks/capacitor/media-session/)
* [ ML Kit ](/docs/sdks/capacitor/mlkit/)
* [ Navigation Bar ](/docs/sdks/capacitor/navigation-bar/)
* [ Network ](/docs/sdks/capacitor/network/)
* [ NFC ](/docs/sdks/capacitor/nfc/)
* [ Node.js ](/docs/sdks/capacitor/nodejs/)
* [ OAuth ](/docs/sdks/capacitor/oauth/)
* [ Passkeys ](/docs/sdks/capacitor/passkeys/)
* [ Password Autofill ](/docs/sdks/capacitor/password-autofill/)
* [ PDF Generator ](/docs/sdks/capacitor/pdf-generator/)
* [ PDF Viewer ](/docs/sdks/capacitor/pdf-viewer/)
* [ Pedometer ](/docs/sdks/capacitor/pedometer/)
* [ Permissions ](/docs/sdks/capacitor/permissions/)
* [ Phone Dialer ](/docs/sdks/capacitor/phone-dialer/)
* [ Photo Editor ](/docs/sdks/capacitor/photo-editor/)
* [ Photo Manipulator ](/docs/sdks/capacitor/photo-manipulator/)
* [ PixLive ](/docs/sdks/capacitor/pixlive/)
* [ PostHog ](/docs/sdks/capacitor/posthog/)
* [ Printer ](/docs/sdks/capacitor/printer/)
* [ Privacy Screen ](/docs/sdks/capacitor/privacy-screen/)
* [ Proximity Sensor ](/docs/sdks/capacitor/proximity-sensor/)
* [ Purchases ](/docs/sdks/capacitor/purchases/)
* [ RealtimeKit ](/docs/sdks/capacitor/realtimekit/)
* [ Root Detection ](/docs/sdks/capacitor/root-detection/)
* [ Screen Brightness ](/docs/sdks/capacitor/screen-brightness/)
* [ Screen Orientation ](/docs/sdks/capacitor/screen-orientation/)
* [ Screen Reader ](/docs/sdks/capacitor/screen-reader/)
* [ Screenshot ](/docs/sdks/capacitor/screenshot/)
* [ Secure Preferences ](/docs/sdks/capacitor/secure-preferences/)
* [ Settings Launcher ](/docs/sdks/capacitor/settings-launcher/)
* [ Shake ](/docs/sdks/capacitor/shake/)
* [ Silent Mode ](/docs/sdks/capacitor/silent-mode/)
* [ SIM ](/docs/sdks/capacitor/sim/)
* [ SMS Composer ](/docs/sdks/capacitor/sms-composer/)
* [ Speech Recognition ](/docs/sdks/capacitor/speech-recognition/)
* [ Speech Synthesis ](/docs/sdks/capacitor/speech-synthesis/)
* [ Share Target ](/docs/sdks/capacitor/share-target/)
* [ Square Mobile Payments ](/docs/sdks/capacitor/square-mobile-payments/)
* [ SQLite ](/docs/sdks/capacitor/sqlite/)
* [ Superwall ](/docs/sdks/capacitor/superwall/)
* [ System WebView ](/docs/sdks/capacitor/system-webview/)
* [ Text Interaction ](/docs/sdks/capacitor/text-interaction/)
* [ Text Zoom ](/docs/sdks/capacitor/text-zoom/)
* [ Thermal State ](/docs/sdks/capacitor/thermal-state/)
* [ Toast ](/docs/sdks/capacitor/toast/)
* [ Torch ](/docs/sdks/capacitor/torch/)
* [ Vault ](/docs/sdks/capacitor/vault/)
* [ Volume ](/docs/sdks/capacitor/volume/)
* [ Wallet ](/docs/sdks/capacitor/wallet/)
* [ Wifi ](/docs/sdks/capacitor/wifi/)
* [ Zip ](/docs/sdks/capacitor/zip/)
* [ Cordova ](/docs/sdks/cordova/)
* [ Cloud ](/docs/cloud/)
* [ Integrations ](/docs/cloud/live-updates/integrations/)
* Concepts
* Reference
* [ Troubleshooting ](/docs/cloud/live-updates/troubleshooting/)
* [ FAQ ](/docs/cloud/live-updates/faq/)
* [ Native Builds ](/docs/cloud/native-builds/)
* [ Set Up Environments ](/docs/cloud/native-builds/environments/)
* [ Overwrite Native Configurations ](/docs/cloud/native-builds/native-configurations/)
* [ Auto-Increment Build Numbers ](/docs/cloud/native-builds/auto-incrementing-build-numbers/)
* [ Configure the Web Build Script ](/docs/cloud/native-builds/web-build-script/)
* [ Build from a Monorepo ](/docs/cloud/native-builds/monorepo/)
* [ Use pnpm, Yarn, or bun ](/docs/cloud/native-builds/package-managers/)
* [ Install Private npm Packages ](/docs/cloud/native-builds/npm-private-registry/)
* [ Override the Java Version ](/docs/cloud/native-builds/override-java-version/)
* [ Custom iOS Provisioning Profiles ](/docs/cloud/native-builds/custom-ios-provisioning-profiles/)
* [ Build without Git ](/docs/cloud/native-builds/build-without-git/)
* [ Access Git Behind a Firewall ](/docs/cloud/native-builds/firewall-access/)
* [ Integrations ](/docs/cloud/native-builds/integrations/)
* Reference
* [ Troubleshooting ](/docs/cloud/native-builds/troubleshooting/)
* [ FAQ ](/docs/cloud/native-builds/faq/)
* [ App Store Publishing ](/docs/cloud/app-store-publishing/)
* [ Submit a Build ](/docs/cloud/app-store-publishing/submit-a-build/)
* [ Submit Automatically After a Build ](/docs/cloud/app-store-publishing/submit-automatically/)
* [ Troubleshooting ](/docs/cloud/app-store-publishing/troubleshooting/)
* [ FAQ ](/docs/cloud/app-store-publishing/faq/)
* [ Automations ](/docs/cloud/automations/)
* [ Reference ](/docs/cloud/automations/reference/)
* [ Troubleshooting ](/docs/cloud/automations/troubleshooting/)
* [ FAQ ](/docs/cloud/automations/faq/)
* [ Assist ](/docs/cloud/assist/)
* [ CLI ](/docs/cloud/cli/)
* APIs and SDKs
* [ Webhooks ](/docs/cloud/webhooks/)
* [ Integrations ](/docs/cloud/integrations/)
* Account
* [ Organization ](/docs/cloud/organizations/)
* [ Two-Factor Enforcement ](/docs/cloud/organizations/two-factor-authentication/)
* [ Audit Logs ](/docs/cloud/organizations/audit-logs/)
* [ Billing ](/docs/cloud/organizations/billing/)
* [ License Keys ](/docs/cloud/license-keys/)
* [ AI ](/docs/ai/)
* [ Insiders ](/docs/insiders/)
* [ Billing & Plans ](/docs/insiders/billing-and-plans/)
* [ FAQ ](/docs/insiders/faq/)
* [ License ](https://capawesome.io/legal/eula/)
* [ Support ](/docs/support/)
* [ Contributing ](/docs/contributing/)
* Contributing code
* [ Code of Conduct ](/docs/contributing/code-of-conduct/)
* [ Questions ](https://docs.github.com/en/discussions/collaborating-with-your-community-using-discussions/participating-in-a-discussion#creating-a-discussion)
* [ Blog ](/blog/)
* Categories

* [ iOS ](#ios)
* [ Configuration ](#configuration)
* [ Usage ](#usage)
* [ API ](#api)
* [ Format Support ](#format-support)
* [ Lossless Metadata Writes ](#lossless-metadata-writes)
* [ Privacy: Strip Metadata Before Upload ](#privacy-strip-metadata-before-upload)
* [ Limitations ](#limitations)
* [ Changelog ](#changelog)
* [ License ](#license)

# Capacitor Exif Plugin[¶](#capacitor-exif-plugin "Permanent link")

Capacitor plugin to read, write and remove EXIF metadata from image files.

[ ![Deliver Live Updates to your Capacitor app with Capawesome Cloud](../../../assets/external/cloud.capawesome.io/assets/banners/cloud-build-and-deploy-capacitor-apps.69628c3f.png) ](https://cloud.capawesome.io/) 

## Features[¶](#features "Permanent link")

* 📖 **Read**: Read typed EXIF tags like GPS position, camera model, and capture date.
* ✍️ **Write**: Update EXIF tags in place without touching the rest of the file.
* 🕵️ **Privacy**: Strip GPS positions and other sensitive metadata before uploading images.
* 💎 **Lossless**: The pixel data is never re-encoded, so the image quality is not affected.
* 🖼️ **HEIC support**: Read and write HEIC metadata natively, which JavaScript libraries can not do.
* ⚡ **Native performance**: Files are processed natively and never loaded into the WebView memory.
* 🤝 **Compatibility**: Works alongside the [File Picker](https://capawesome.io/docs/sdks/capacitor/file-picker/), [File Compressor](https://capawesome.io/docs/sdks/capacitor/file-compressor/) and [Photo Editor](https://capawesome.io/docs/sdks/capacitor/photo-editor/) plugins.
* 🔒 **App Store safe**: Uses only official platform APIs.
* 📦 **CocoaPods & SPM**: Supports CocoaPods and Swift Package Manager for iOS.
* 🔁 **Up-to-date**: Always supports the latest Capacitor version.

Missing a feature? Just [open an issue](https://github.com/capawesome-team/capacitor-plugins/issues) and we'll take a look!

## Newsletter[¶](#newsletter "Permanent link")

Stay up to date with the latest news and updates about the Capawesome, Capacitor, and Ionic ecosystem by subscribing to our [Capawesome Newsletter](https://cloud.capawesome.io/newsletter/).

## Compatibility[¶](#compatibility "Permanent link")

| Plugin Version | Capacitor Version | Status         |
| -------------- | ----------------- | -------------- |
| 0.x.x          | \>=8.x.x          | Active support |

## Installation[¶](#installation "Permanent link")

You can use our **AI-Assisted Setup** to install the plugin. Add the [Capawesome Skills](https://github.com/capawesome-team/skills) to your AI tool using the following command:

`[](#%5F%5Fcodelineno-0-1)npx skills add capawesome-team/skills --skill capacitor-plugins
`

Then use the following prompt:

`` [](#%5F%5Fcodelineno-1-1) Use the `capacitor-plugins` skill from `capawesome-team/skills` to install the `@capawesome/capacitor-exif` plugin in my project.
 ``

If you prefer **Manual Setup**, install the plugin by running the following commands and follow the platform-specific instructions below:

`[](#%5F%5Fcodelineno-2-1)npm install @capawesome/capacitor-exif
[](#%5F%5Fcodelineno-2-2)npx cap sync
`

### Android[¶](#android "Permanent link")

#### Variables[¶](#variables "Permanent link")

This plugin will use the following project variables (defined in your app’s `variables.gradle` file):

* `$androidxExifInterfaceVersion` version of `androidx.exifinterface:exifinterface` (default: `1.4.2`)

### iOS[¶](#ios "Permanent link")

No additional configuration is required for this plugin.

## Configuration[¶](#configuration "Permanent link")

No configuration required for this plugin.

## Usage[¶](#usage "Permanent link")

`[](#%5F%5Fcodelineno-3-1)import { Exif } from '@capawesome/capacitor-exif';
[](#%5F%5Fcodelineno-3-2)
[](#%5F%5Fcodelineno-3-3)const readExif = async () => {
[](#%5F%5Fcodelineno-3-4)  const { tags } = await Exif.readExif({
[](#%5F%5Fcodelineno-3-5)    path: 'file:///path/to/photo.jpg',
[](#%5F%5Fcodelineno-3-6)  });
[](#%5F%5Fcodelineno-3-7)  console.log('GPS position:', tags.gpsLatitude, tags.gpsLongitude);
[](#%5F%5Fcodelineno-3-8)};
[](#%5F%5Fcodelineno-3-9)
[](#%5F%5Fcodelineno-3-10)const writeExif = async () => {
[](#%5F%5Fcodelineno-3-11)  await Exif.writeExif({
[](#%5F%5Fcodelineno-3-12)    path: 'file:///path/to/photo.jpg',
[](#%5F%5Fcodelineno-3-13)    tags: {
[](#%5F%5Fcodelineno-3-14)      dateTimeOriginal: '2026:01:15 10:30:00',
[](#%5F%5Fcodelineno-3-15)      gpsLatitude: 51.503364,
[](#%5F%5Fcodelineno-3-16)      gpsLongitude: -0.127625,
[](#%5F%5Fcodelineno-3-17)    },
[](#%5F%5Fcodelineno-3-18)  });
[](#%5F%5Fcodelineno-3-19)};
[](#%5F%5Fcodelineno-3-20)
[](#%5F%5Fcodelineno-3-21)const removeExif = async () => {
[](#%5F%5Fcodelineno-3-22)  await Exif.removeExif({
[](#%5F%5Fcodelineno-3-23)    path: 'file:///path/to/photo.jpg',
[](#%5F%5Fcodelineno-3-24)  });
[](#%5F%5Fcodelineno-3-25)};
`

## API[¶](#api "Permanent link")

* [readExif(...)](#readexif)
* [removeExif(...)](#removeexif)
* [writeExif(...)](#writeexif)
* [Interfaces](#interfaces)

### readExif(...)[¶](#readexif "Permanent link")

`[](#%5F%5Fcodelineno-4-1)readExif(options: ReadExifOptions) => Promise<ReadExifResult>
`

Read the EXIF metadata of an image file.

Only available on Android and iOS.

| Param       | Type                                |
| ----------- | ----------------------------------- |
| **options** | [ReadExifOptions](#readexifoptions) |

**Returns:** `Promise<[ReadExifResult](#readexifresult)>`

**Since:** 0.1.0

---

### removeExif(...)[¶](#removeexif "Permanent link")

`[](#%5F%5Fcodelineno-5-1)removeExif(options: RemoveExifOptions) => Promise<void>
`

Remove the EXIF metadata from an image file in place.

The pixel data is never re-encoded, so the image quality is not affected.

Only available on Android and iOS.

| Param       | Type                                    |
| ----------- | --------------------------------------- |
| **options** | [RemoveExifOptions](#removeexifoptions) |

**Since:** 0.1.0

---

### writeExif(...)[¶](#writeexif "Permanent link")

`[](#%5F%5Fcodelineno-6-1)writeExif(options: WriteExifOptions) => Promise<void>
`

Write EXIF metadata to an image file in place.

Only the provided tags are updated. All other tags remain unchanged. The pixel data is never re-encoded, so the image quality is not affected.

Only available on Android and iOS.

| Param       | Type                                  |
| ----------- | ------------------------------------- |
| **options** | [WriteExifOptions](#writeexifoptions) |

**Since:** 0.1.0

---

### Interfaces[¶](#interfaces "Permanent link")

#### ReadExifResult[¶](#readexifresult "Permanent link")

| Prop     | Type                  | Description                                       | Since |
| -------- | --------------------- | ------------------------------------------------- | ----- |
| **tags** | [ExifTags](#exiftags) | The EXIF tags that were read from the image file. | 0.1.0 |

#### ExifTags[¶](#exiftags "Permanent link")

The EXIF tags of an image file.

Every property is optional and only present if the tag exists in the file.

| Prop                 | Type    | Description                                                                                                        | Since |
| -------------------- | ------- | ------------------------------------------------------------------------------------------------------------------ | ----- |
| **dateTimeOriginal** | string  | The date and time when the image was originally captured in the EXIF date format YYYY:MM:DD HH:MM:SS.              | 0.1.0 |
| **exposureTime**     | number  | The exposure time in seconds.                                                                                      | 0.1.0 |
| **fNumber**          | number  | The F number (aperture) of the lens.                                                                               | 0.1.0 |
| **flash**            | boolean | Whether or not the flash fired when the image was captured.                                                        | 0.1.0 |
| **focalLength**      | number  | The focal length of the lens in millimeters.                                                                       | 0.1.0 |
| **gpsAltitude**      | number  | The altitude in meters above (positive) or below (negative) sea level.                                             | 0.1.0 |
| **gpsLatitude**      | number  | The latitude in signed decimal degrees. Positive values are north of the equator, negative values are south.       | 0.1.0 |
| **gpsLongitude**     | number  | The longitude in signed decimal degrees. Positive values are east of the prime meridian, negative values are west. | 0.1.0 |
| **iso**              | number  | The ISO speed rating (photographic sensitivity).                                                                   | 0.1.0 |
| **lensModel**        | string  | The model of the lens.                                                                                             | 0.1.0 |
| **make**             | string  | The manufacturer of the camera.                                                                                    | 0.1.0 |
| **model**            | string  | The model of the camera.                                                                                           | 0.1.0 |
| **orientation**      | number  | The orientation of the image as defined by the EXIF specification (1-8).                                           | 0.1.0 |
| **pixelHeight**      | number  | The height of the image in pixels.                                                                                 | 0.1.0 |
| **pixelWidth**       | number  | The width of the image in pixels.                                                                                  | 0.1.0 |
| **software**         | string  | The name of the software that was used to create or edit the image.                                                | 0.1.0 |

#### ReadExifOptions[¶](#readexifoptions "Permanent link")

| Prop     | Type   | Description                                                                                                 | Since |
| -------- | ------ | ----------------------------------------------------------------------------------------------------------- | ----- |
| **path** | string | The path to the image file to read the EXIF metadata from. Local file paths and file:// URIs are supported. | 0.1.0 |

#### RemoveExifOptions[¶](#removeexifoptions "Permanent link")

| Prop                | Type    | Description                                                                                                                                                                                   | Default | Since |
| ------------------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- | ----- |
| **keepOrientation** | boolean | Whether or not to keep the orientation tag when removing the EXIF metadata. This is enabled by default so that images are not suddenly displayed rotated after the metadata has been removed. | true    | 0.1.0 |
| **path**            | string  | The path to the image file to remove the EXIF metadata from. Local file paths and file:// URIs are supported.                                                                                 |         | 0.1.0 |

#### WriteExifOptions[¶](#writeexifoptions "Permanent link")

| Prop     | Type                                  | Description                                                                                                    | Since |
| -------- | ------------------------------------- | -------------------------------------------------------------------------------------------------------------- | ----- |
| **path** | string                                | The path to the image file to write the EXIF metadata to. Local file paths and file:// URIs are supported.     | 0.1.0 |
| **tags** | [WritableExifTags](#writableexiftags) | The EXIF tags to write to the image file. Only the provided tags are updated. All other tags remain unchanged. | 0.1.0 |

#### WritableExifTags[¶](#writableexiftags "Permanent link")

The writable subset of the EXIF tags.

| Prop                 | Type    | Description                                                                                                                                                    | Since |
| -------------------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----- |
| **dateTimeOriginal** | string  | The date and time when the image was originally captured in the EXIF date format YYYY:MM:DD HH:MM:SS.                                                          | 0.1.0 |
| **exposureTime**     | number  | The exposure time in seconds.                                                                                                                                  | 0.1.0 |
| **fNumber**          | number  | The F number (aperture) of the lens.                                                                                                                           | 0.1.0 |
| **flash**            | boolean | Whether or not the flash fired when the image was captured.                                                                                                    | 0.1.0 |
| **focalLength**      | number  | The focal length of the lens in millimeters.                                                                                                                   | 0.1.0 |
| **gpsAltitude**      | number  | The altitude in meters above (positive) or below (negative) sea level.                                                                                         | 0.1.0 |
| **gpsLatitude**      | number  | The latitude in signed decimal degrees. Positive values are north of the equator, negative values are south. Must be provided together with gpsLongitude.      | 0.1.0 |
| **gpsLongitude**     | number  | The longitude in signed decimal degrees. Positive values are east of the prime meridian, negative values are west. Must be provided together with gpsLatitude. | 0.1.0 |
| **iso**              | number  | The ISO speed rating (photographic sensitivity).                                                                                                               | 0.1.0 |
| **lensModel**        | string  | The model of the lens.                                                                                                                                         | 0.1.0 |
| **make**             | string  | The manufacturer of the camera.                                                                                                                                | 0.1.0 |
| **model**            | string  | The model of the camera.                                                                                                                                       | 0.1.0 |
| **orientation**      | number  | The orientation of the image as defined by the EXIF specification (1-8).                                                                                       | 0.1.0 |
| **software**         | string  | The name of the software that was used to create or edit the image.                                                                                            | 0.1.0 |

## Format Support[¶](#format-support "Permanent link")

The plugin can read EXIF metadata from any image format that the platform supports. Writing and removing EXIF metadata is a lossless in-place operation that is only supported for the following formats:

| Format    | Read (Android) | Read (iOS) | Write & Remove (Android) | Write & Remove (iOS) |
| --------- | -------------- | ---------- | ------------------------ | -------------------- |
| JPEG      | ✅              | ✅          | ✅                        | ✅                    |
| PNG       | ✅              | ✅          | ✅                        | ❌                    |
| WebP      | ✅              | ✅          | ✅                        | ❌                    |
| HEIC/HEIF | ✅              | ✅          | ❌                        | ✅                    |
| DNG/RAW   | ✅              | ✅          | ❌                        | ❌                    |

Calling `writeExif(...)` or `removeExif(...)` with an unsupported format rejects with the `UNSUPPORTED_FORMAT` error code.

## Lossless Metadata Writes[¶](#lossless-metadata-writes "Permanent link")

A metadata plugin that degrades the image quality is broken. This plugin therefore guarantees that the pixel data is never decoded or re-encoded:

* On **Android**, the [ExifInterface](https://developer.android.com/reference/androidx/exifinterface/media/ExifInterface) library rewrites only the metadata segments of the file in place.
* On **iOS**, the [CGImageDestinationCopyImageSource](https://developer.apple.com/documentation/imageio/cgimagedestinationcopyimagesource%28%5F:%5F:%5F:%5F:%29) API copies the compressed image data unchanged and only replaces the metadata.

## Privacy: Strip Metadata Before Upload[¶](#privacy-strip-metadata-before-upload "Permanent link")

Images taken with a smartphone usually contain the exact GPS position, the device model, and the capture date. To protect the privacy of your users, remove this metadata before uploading images to a server:

`[](#%5F%5Fcodelineno-7-1)import { Exif } from '@capawesome/capacitor-exif';
[](#%5F%5Fcodelineno-7-2)
[](#%5F%5Fcodelineno-7-3)const prepareUpload = async (path: string) => {
[](#%5F%5Fcodelineno-7-4)  // Remove the GPS position and all other EXIF metadata.
[](#%5F%5Fcodelineno-7-5)  // The orientation is kept so that the image is not displayed rotated.
[](#%5F%5Fcodelineno-7-6)  await Exif.removeExif({ path });
[](#%5F%5Fcodelineno-7-7)};
`

## Limitations[¶](#limitations "Permanent link")

### Android[¶](#android%5F1 "Permanent link")

* Vendor-specific maker notes and other unknown tags may survive `removeExif(...)` since the `ExifInterface` library can only remove known tags.

### iOS[¶](#ios%5F1 "Permanent link")

* HEIC files store the orientation at the container level, so the `orientation` tag can not be changed and is always kept, even with `keepOrientation` set to `false`.
* HEIC files may keep the `software` and `dateTimeOriginal` tags after `removeExif(...)`. GPS data and device identity tags (`make`, `model`, `lensModel`) are always removed.

## Changelog[¶](#changelog "Permanent link")

See [CHANGELOG.md](https://github.com/capawesome-team/capacitor-plugins/blob/main/packages/exif/CHANGELOG.md).

## License[¶](#license "Permanent link")

See [LICENSE](https://github.com/capawesome-team/capacitor-plugins/blob/main/packages/exif/LICENSE).

July 7, 2026 

Back to top

```json
{"@context": "https://schema.org", "@graph": [{"@type": "TechArticle", "@id": "https://capawesome.io/docs/sdks/capacitor/exif/#article", "headline": "Capacitor Exif Plugin for Android & iOS", "name": "Capacitor Exif Plugin for Android & iOS", "description": "Capacitor plugin to losslessly read, write, and strip EXIF metadata such as GPS position and camera details from image files, including HEIC. Supports Android and iOS.", "inLanguage": "en", "url": "https://capawesome.io/docs/sdks/capacitor/exif/", "mainEntityOfPage": "https://capawesome.io/docs/sdks/capacitor/exif/", "author": {"@type": "Organization", "name": "Capawesome", "url": "https://capawesome.io", "logo": {"@type": "ImageObject", "url": "https://capawesome.io/assets/images/logo.svg"}}, "publisher": {"@type": "Organization", "name": "Capawesome", "url": "https://capawesome.io", "logo": {"@type": "ImageObject", "url": "https://capawesome.io/assets/images/logo.svg"}}, "about": {"@id": "https://capawesome.io/docs/sdks/capacitor/exif/#software"}}, {"@type": "SoftwareSourceCode", "@id": "https://capawesome.io/docs/sdks/capacitor/exif/#software", "name": "Capacitor Exif Plugin for Android & iOS", "description": "Capacitor plugin to losslessly read, write, and strip EXIF metadata such as GPS position and camera details from image files, including HEIC. Supports Android and iOS.", "url": "https://capawesome.io/docs/sdks/capacitor/exif/", "programmingLanguage": "TypeScript", "runtimePlatform": "Capacitor", "codeRepository": "https://github.com/capawesome-team", "author": {"@type": "Organization", "name": "Capawesome", "url": "https://capawesome.io", "logo": {"@type": "ImageObject", "url": "https://capawesome.io/assets/images/logo.svg"}}, "publisher": {"@type": "Organization", "name": "Capawesome", "url": "https://capawesome.io", "logo": {"@type": "ImageObject", "url": "https://capawesome.io/assets/images/logo.svg"}}}]}
```
