AndrewJBateman / ionic-angular-imagecrop

:clipboard: Ionic app to crop images. Another excellent tutorial from Simon Grimm at the Ionic Academy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

⚑ 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

About

:clipboard: Ionic app to crop images. Another excellent tutorial from Simon Grimm at the Ionic Academy

License:MIT License


Languages

Language:TypeScript 58.3%Language:SCSS 17.3%Language:HTML 15.9%Language:JavaScript 8.5%