1.0.4 • Published 8 months ago

@digitalemenschen/capacitor-heic-to-jpeg v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

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.

ParamType
options{ path: string; }

Returns: Promise<{ path: string; }>


License

Released under MIT license, see LICENSE.

1.0.4

8 months ago

1.0.3

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago