@digitalemenschen/capacitor-heic-to-jpeg
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

capacitor-heic-to-jpeg

A streamlined plugin designed to convert HEIC images to JPEG format. Compatible with both iOS and Android platforms. Simply provide a URI (either an absolute path or an Android content URI) pointing to a HEIC/HEIF image. The plugin will process the conversion and return a new URI for the JPEG output.

Converted JPEGs are stored in the applications cache directory, and must either be cleaned manually or just let the operating system do its job.

Contributing

Please don't hesitate to contribute by creating pull requests.

Install

npm install @digitalemenschen/capacitor-heic-to-jpeg
npx cap sync

API

convertToJpeg(...)

convertToJpeg(options: { path: string; }) => Promise<{ path: string; }>

Provide the path (either an absolute path or an Android content URI) pointing to the HEIC/HEIF image you'd like to convert. If you provide an Android content URI, the plugin will also return an Android content URI in exchange.

Param Type
options { path: string; }

Returns: Promise<{ path: string; }>


License

Released under MIT license, see LICENSE.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.1.12latest

Version History

VersionDownloads (Last 7 Days)Published
1.1.12
1.1.00
1.0.40
1.0.30
1.0.20
1.0.10
1.0.00

Package Sidebar

Install

npm i @digitalemenschen/capacitor-heic-to-jpeg

Weekly Downloads

2

Version

1.1.1

License

MIT

Unpacked Size

23.6 kB

Total Files

28

Last publish

Collaborators

  • daniel-maegerli-digitalemenschen-ch