All Projects → hggeorgiev → ngx-image-editor

hggeorgiev / ngx-image-editor

Licence: MIT License
Awesome image editor for Angular 6

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to ngx-image-editor

ngx-img
No description or website provided.
Stars: ✭ 25 (-66.22%)
Mutual labels:  crop, angular4, angular5, angular6
Popover
Angular CDK Popover, no default style, examples using @angular/material
Stars: ✭ 156 (+110.81%)
Mutual labels:  angular4, angular5, angular6
file-input-accessor
Angular directive that provides file input functionality in Angular forms.
Stars: ✭ 32 (-56.76%)
Mutual labels:  angular4, angular5, angular6
angular-rollbar-source-maps
Angular 2+ implementation to upload sourcemaps to Rollbar
Stars: ✭ 17 (-77.03%)
Mutual labels:  angular4, angular5, angular6
AuthGuard
Example repo for guarding routes post
Stars: ✭ 42 (-43.24%)
Mutual labels:  angular4, angular5, angular6
Ng2 Pdfjs Viewer
An angular 8 component for PDFJS and ViewerJS (Supports angular 2/4/5/6/7)
Stars: ✭ 150 (+102.7%)
Mutual labels:  angular4, angular5, angular6
Ng Select
⭐ Native angular select component
Stars: ✭ 2,781 (+3658.11%)
Mutual labels:  angular4, angular5, angular6
Aspnetcore Angular Universal
ASP.NET Core & Angular Universal advanced starter - PWA w/ server-side rendering for SEO, Bootstrap, i18n internationalization, TypeScript, unit testing, WebAPI REST setup, SignalR, Swagger docs, and more! By @TrilonIO
Stars: ✭ 1,455 (+1866.22%)
Mutual labels:  angular4, angular5, angular6
Angular5 Seed
Angular5 Seed for Application
Stars: ✭ 222 (+200%)
Mutual labels:  angular4, angular5, angular6
ng-toggle
Bootstrap-styled Angular Toggle Component
Stars: ✭ 14 (-81.08%)
Mutual labels:  angular4, angular5, angular6
angularx-qrcode-sample-app
Angular5/6/7/8/9/10+ sample apps with working implementations of angularx-qrcode
Stars: ✭ 15 (-79.73%)
Mutual labels:  angular4, angular5, angular6
ngx-konami
A simple directive to add easter eggs in your Angular application 👾
Stars: ✭ 34 (-54.05%)
Mutual labels:  angular4, angular5, angular6
Learn Angular From Scratch Step By Step
Angular step by step tutorial covering from basic concepts of Angular Framework to building a complete Angular app using Angular Material components. We will go through the main building blocks of an Angular 7 application as well as the best practices for building a complete app with Angular.
Stars: ✭ 140 (+89.19%)
Mutual labels:  angular4, angular5, angular6
Ng2 Idle
Responding to idle users in Angular (not AngularJS) applications.
Stars: ✭ 240 (+224.32%)
Mutual labels:  angular4, angular5, angular6
Ng Simple Slideshow
A simple, responsive slideshow for Angular 4+.
Stars: ✭ 119 (+60.81%)
Mutual labels:  angular4, angular5, angular6
Sb Admin Bs4 Angular 8
Simple Dashboard Admin App built using Angular 8 and Bootstrap 4
Stars: ✭ 1,931 (+2509.46%)
Mutual labels:  angular4, angular5, angular6
Ng2 Flatpickr
Angular 2+ wrapper for flatpickr (https://github.com/chmln/flatpickr)
Stars: ✭ 91 (+22.97%)
Mutual labels:  angular4, angular5, angular6
Angular File Uploader
Angular file uploader is an Angular 2/4/5/6/7/8/9/10 + file uploader module with Real-Time Progress Bar, Responsive design, Angular Universal Compatibility, localization and multiple themes which includes Drag and Drop and much more.
Stars: ✭ 92 (+24.32%)
Mutual labels:  angular4, angular5, angular6
Ngx Daterangepicker Material
Pure Angular 2+ date range picker with material design theme, a demo here:
Stars: ✭ 169 (+128.38%)
Mutual labels:  angular4, angular5, angular6
spring-websocket-angular6
Example for using Spring Websocket and Angular with Stomp Messaging
Stars: ✭ 18 (-75.68%)
Mutual labels:  angular4, angular5, angular6

ngx-image-editor

Awesome editor for Angular 6 based on Angular Material

npm version Build Status

Live Demo on Slackblitz

Getting started

Step 1: Install Angular Material (+ Material Icons) and Angular Flex Layout
Step 2: Install cropperjs
    yarn add cropperjs
Step 3: Add cropperjs file paths in your .angular.json
}
       "styles": [
         "node_modules/cropperjs/dist/cropper.css"
       ],
       "scripts": [
         "node_modules/cropperjs/dist/cropper.js"
       ]
}
Step 4: Install ngx-image-editor:
   yarn add ngx-image-editor
Step 5: Import the NgxImageEditorModule within your app:
      import {NgxImageEditorModule} from "ngx-image-editor";

      @NgModule({
        imports: [
          NgxImageEditorModule
        ]
      })
Step 6: Use within your application:
   <ngx-image-editor [config]="yourConfig"></ngx-image-editor>

API

Property Description
[config] An object containing editor configuration (see Configuration)
(file) The emitted file after editing.

Configuration

Property Description
ImageName Name of the image.
ImageUrl URL of the image (if it coming from a CDN) .
File File object of the image (if it is being uploaded through the browser.
ImageType Type of the image (default is image/jpeg).
AspectRatios Array of aspect ratios. Available options: 0:0, 1:1 , 2:3 ,4:3, 16:9l . (default is 0:0)

Example

@Component({
  selector: 'app-root',
   styleUrls: ['./app.component.css']
  template: `
      <ngx-image-editor
        [config]="config"
        (close)="close($event)"
        (file)="getEditedFile($event)">
      </ngx-image-editor>

  `,

})
export class AppComponent {
  public config = {
    ImageName: 'Some image',
    AspectRatios: ["4:3", "16:9"],
    ImageUrl: 'https://static.pexels.com/photos/248797/pexels-photo-248797.jpeg',
    ImageType: 'image/jpeg'
  }

  public close() {
    // Fired when the editor is closed.
  }

  public getEditedFile(file: File) {
    // Fired when the file has been processed.
  }
}

Contributors

Hristo Georgiev Taulant Disha
Hristo Georgiev Taulant Disha
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].