Skip to content

AndrewJBateman/ionic-angular-imagecrop

Repository files navigation

⚡ Ionic Angular Image Crop

📄 Table of contents

📚 General info

  • Updated to the latest Angular & Ionic versions, all dependencies updated
  • Uses the Cordova camera plugin, improved with the Ionic-native camera plugin.
  • This is for development, a jpg image is used instead of the camera image.

📷 Screenshots

image

📶 Technologies

💾 Setup

  • Run npm i to install dependencies
  • To start the server on localhost://8100 type: 'ionic serve -o'

💻 Code Examples

  • Extract from home.page.ts to show camera options
const options: CameraOptions = {
    quality: 100,
    destinationType: this.camera.DestinationType.DATA_URL,
    encodingType: this.camera.EncodingType.JPEG,
    mediaType: this.camera.MediaType.PICTURE,
    sourceType: this.camera.PictureSourceType.CAMERA
}

🆒 Features

  • Crops and manipulates images using image cropper methods.

📋 Status & To-do list

  • Status: Working. Needs Cordoba to test properly.
  • To-do: Nothing.

👏 Inspiration

📁 License

  • This project is licensed under the terms of the MIT license.

✉️ Contact