A capacitor plugin that lets you get an unadultered image (in Base64) using the platform specific identifier. This is early-days in the dev and it problably does not work off-the-shelf.
npm install @swarmtechnology/gimmeimage
npx cap sync
or, if you use yarn...
yarn add @swarmtechnology/gimmeimage
npx cap sync
gimmeMediaItem(options?: GimmeOptions) => Promise<MediaAsset>
Get media item from camera roll referenced by the platform specific identifier.
Returns: Promise<MediaAsset>
savePhoto(options?: MediaSaveOptions) => Promise<PhotoResponse>
Returns: Promise<PhotoResponse>
Prop |
Type |
Description |
identifier |
string |
Platform-specific identifier |
data |
string |
Data for a photo asset as a base64 encoded string (JPEG only supported) |
creationDate |
string |
ISO date string for creation date of asset |
fullWidth |
number |
Full width of original asset |
fullHeight |
number |
Full height of original asset |
thumbnailWidth |
number |
Width of thumbnail preview |
thumbnailHeight |
number |
Height of thumbnail preview |
type |
string |
Type of asset |
location |
MediaLocation |
Location metadata for the asset |
Prop |
Type |
Description |
latitude |
number |
GPS latitude image was taken at |
longitude |
number |
GPS longitude image was taken at |
heading |
number |
Heading of user at time image was taken |
altitude |
number |
Altitude of user at time image was taken |
speed |
number |
Speed of user at time image was taken |
Prop |
Type |
Description |
identifier |
string |
Platform-specific identifier |
Prop |
Type |
filePath |
string |
Prop |
Type |
path |
string |
album |
string |