1.0.11 • Published 5 years ago

ionictakepicture v1.0.11

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

Ionic Take Picture (Camera Plugin Wrapper)

This is an ionic 4 plugin to take picture from device camera. This plugin is based on ionic native camera plugin.

Example

Disclaimer

This project was tested in ionic 4.0.0 for my personal purposes

How to use

  1. Install the plugin
npm install ionictakepicture
  1. Import and add in app.module.ts
....
import { IonictakepicturewrapperModule,IonictakepictureProvider } from 'ionictakepicture';
....
  1. In app.module.ts, add the module and provider to imports and providers sections
imports {
....
IonicTakePictureModule,
....
}

providers [
....
IonictakepictureProvider,
....
]
  1. In component.module.ts, import and export the component
...
import { IonicTakePictureModule, IonictakepictureComponent } from 'ionictakepicture';
...
imports:[
IonicTakePictureModule
]
...
exports: [
...
IonictakepictureComponent,
...
]
  1. Use it in respective html like this:
<ion-takepicture [(ngModel)]="pictureData"></ion-takepicture>

//Base 64 image of the pictureData
<p>{{pictureData}}</p>
  1. You can also use it with optional options. Detail parameter you can find on this page:
<ion-takepicture [(ngModel)]="pictureData" [targetWidth]="300" [targetHeight]="300" [saveToPhotoAlbum]="true" [cameraDirection]="0" [destinationType]="0" [encodingType]="0" [mediaType]="0" [quality]="80"></ion-takepicture>

//Base 64 image of the pictureData
<p>{{pictureData}}</p>
1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago