Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andrewjbateman/ionic-angular-imagecrop
:clipboard: Ionic app to crop images. Another excellent tutorial from Simon Grimm at the Ionic Academy
https://github.com/andrewjbateman/ionic-angular-imagecrop
angular angular13 camera crop-images html5 image-cropper image-manipulation ionic ionic-academy ionic6 typescript4
Last synced: 6 days ago
JSON representation
:clipboard: Ionic app to crop images. Another excellent tutorial from Simon Grimm at the Ionic Academy
- Host: GitHub
- URL: https://github.com/andrewjbateman/ionic-angular-imagecrop
- Owner: AndrewJBateman
- License: mit
- Created: 2019-11-06T07:09:48.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T02:15:49.000Z (almost 2 years ago)
- Last Synced: 2023-03-02T09:37:18.373Z (over 1 year ago)
- Topics: angular, angular13, camera, crop-images, html5, image-cropper, image-manipulation, ionic, ionic-academy, ionic6, typescript4
- Language: TypeScript
- Homepage:
- Size: 7.75 MB
- Stars: 5
- Watchers: 0
- Forks: 0
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# :zap: Ionic Angular Image Crop
* App created using the [Ionic framework](https://ionicframework.com/docs) to crop photos using an [Angular Image Cropper module](https://github.com/Mawi137/ngx-image-cropper).
* Another great tutorial from Simon Grimm at the [Ionic Academy](https://ionicacademy.com) - see [:clap: Inspiration](#clap-inspiration) below.## :page_facing_up: Table of contents
* [:zap: Ionic Angular Image Crop](#zap-ionic-angular-image-crop)
* [:page_facing_up: Table of contents](#page_facing_up-table-of-contents)
* [:books: General info](#books-general-info)
* [:camera: Screenshots](#camera-screenshots)
* [:signal_strength: Technologies](#signal_strength-technologies)
* [:floppy_disk: Setup](#floppy_disk-setup)
* [:computer: Code Examples](#computer-code-examples)
* [:cool: Features](#cool-features)
* [:clipboard: Status & To-do list](#clipboard-status--to-do-list)
* [:clap: Inspiration](#clap-inspiration)
* [:file_folder: License](#file_folder-license)
* [:envelope: Contact](#envelope-contact)## :books: 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.## :camera: Screenshots
![image](./img/cropper.png)
## :signal_strength: Technologies
* [Ionic v6](https://ionicframework.com/)
* [Angular v13](https://angular.io/)
* [Ionic/angular v6](https://www.npmjs.com/package/@ionic/angular)
* [Angular RxJS Library v6](https://angular.io/guide/rx-library)
* [ngx Image Cropper v6](https://github.com/Mawi137/ngx-image-cropper)## :floppy_disk: Setup
* Run `npm i` to install dependencies
* To start the server on _localhost://8100_ type: 'ionic serve -o'## :computer: Code Examples
* Extract from `home.page.ts` to show camera options
```typescript
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
}
```## :cool: Features
* Crops and manipulates images using image cropper methods.
## :clipboard: Status & To-do list
* Status: Working. Needs Cordoba to test properly.
* To-do: Nothing.## :clap: Inspiration
* [Simon Grimm´s Youtube video: How to Crop Images in Ionic 4 with CropperJS](https://www.youtube.com/watch?v=UnqVkzWg2W0)
* [Nappd: How to add Image Cropper in ionic 4 app](https://enappd.com/blog/how-to-add-image-cropper-in-ionic-4-app/68/)
* [Adding Image Cropper in Ionic 4 Apps](https://medium.com/enappd/image-cropper-in-ionic-4-7b76f1153ad9)## :file_folder: License
* This project is licensed under the terms of the MIT license.
## :envelope: Contact
* Repo created by [ABateman](https://github.com/AndrewJBateman), email: [email protected]