Ion2FullApp Ionic Template
Buy Ion2FullAppLive PreviewComments
  • What is Ion2FullApp?
  • About Ion2FullApp
  • Set up
  • Code Structure
  • Customize it
  • Data Integration
  • Nifty Stuff
  • Functionalities
    • Wordpress Integration
    • Firebase Integration
    • AdMob
    • App Rate
    • Multi Language
    • Video Playlist
    • Image Picker
    • Twitter Connect
    • Facebook Connect
    • Google Connect
    • Social Sharing
    • Google Maps
    • Call Number
    • Send email
    • Native Storage
  • Troubleshooting
  • Common Questions
Powered by GitBook
On this page
  1. Functionalities

Image Picker

Image handling in Ionic Apps. Learn how we manage images in Ion2FullApp Ionic Template. Image Picker and Image Cropper for Ionic.

PreviousVideo PlaylistNextTwitter Connect

Last updated 6 years ago

We included a functionality to allow the user to pick an image from the phone’s gallery and to crop it. We placed this in the Profile under the “Change profile picture” and also in the Form examples.

You can see the code in src/pages/settings/settings.ts in openImagePicker method.

As we speak, there’s an issue in the original Image Picker plugin, so we made a fork of the repo and fixed it so you will not have any problem.

$ ionic cordova plugin add cordova-plugin-telerik-imagepicker --variable PHOTO_LIBRARY_USAGE_DESCRIPTION="your usage message"

Furthermore, we use the following to select what part of the photo we want to show:

$ ionic cordova plugin add --save cordova-plugin-crop
$ npm install --save @ionic-native/crop

On Android 6 you need to request permission to read external storage at runtime when targeting API level 23+. Even if the uses-permission tags for the Calendar are present in AndroidManifest.xml. You can read more about this .

Note we already included this fix in the code, so you don’t have to worry about it.

Learn more about

plugin
here
Image handling in ionic apps.