How to build an Image Cropper Control in Angular with Material and ngx-image-cropper

Поділитися
Вставка
  • Опубліковано 9 лип 2024
  • Grab my new course 'Angular Firebase Authentication: Create Full Sign up App' with 50% off here:
    www.udemy.com/course/angular-... #Angular #Image #Cropper
    In this tutorial, we'll build up an image cropper control in Angular, allowing your users to crop their photos before uploading to your server!
    The complete code for this tutorial can be found at this following github repository:
    github.com/thisiszoaib/angula...
    Follow me on:
    Twitter - / zoaibdev
    Facebook - / thisiszoaib
    LinkedIn - / zoaib-khan-b6456815
    00:00 Introduction
    01:15 Setting up the Angular project
    02:30 Creating the image control component
    04:20 Styling the image control component
    05:40 Adding image selection
    07:20 Creating the cropper dialog component
    10:30 Handling cropping results
    13:40 Displaying cropped image
    15:50 Resizing cropped image
    17:40 Emitting cropped image
    18:20 Conclusion
    Cheers :) Grab my new course 'Angular Firebase Authentication: Create Full Sign up App' with 50% off here:
    www.udemy.com/course/angular-...
  • Наука та технологія

КОМЕНТАРІ • 18

  • @steve-o2198
    @steve-o2198 10 місяців тому

    Great video, thank you so much!

    • @ZoaibKhan
      @ZoaibKhan  10 місяців тому

      You're welcome, Steve!

  • @techwake360
    @techwake360 10 місяців тому

    awesome

  • @JB-sv8oh
    @JB-sv8oh 7 місяців тому

    great video! thank u s much

    • @ZoaibKhan
      @ZoaibKhan  7 місяців тому

      You're welcome 🤗

  • @gmexpert3530
    @gmexpert3530 4 місяці тому

    how can i resize the image that will get cropped. For smaller images the cropper is really small it would be really helpful if we could resize the original image before loading it on the cropper

  • @user-kh2ij9dm7y
    @user-kh2ij9dm7y 10 місяців тому

    start teaching angular from basics for beginners that would be a huge help

  • @sandeeptiwari602
    @sandeeptiwari602 4 місяці тому

    how to store url image in form of base64 encoded?

    • @ZoaibKhan
      @ZoaibKhan  4 місяці тому

      If I recall, there is a property for that in the cropper package we're using

  • @gunderaopatil476
    @gunderaopatil476 Місяць тому

    Will ngx image cropper works for already uploaded image . ? I mean once you upload and click on that and cropp it

    • @ZoaibKhan
      @ZoaibKhan  Місяць тому

      Yup, from their official docs, you can use the imageUrl input parameter to specify the image.
      github.com/Mawi137/ngx-image-cropper?tab=readme-ov-file#inputs

  • @shivajitiwari7047
    @shivajitiwari7047 5 місяців тому

    Will it support keyboard arrows to crop the image.

    • @ZoaibKhan
      @ZoaibKhan  5 місяців тому

      I'm not sure about this

  • @gekoskipatric
    @gekoskipatric 18 днів тому

    will this work with an ng-module based app?

  • @moudjahidinesalissou9011
    @moudjahidinesalissou9011 10 місяців тому

    Can I use it with bootstrap instead of Angular Material?

    • @ZoaibKhan
      @ZoaibKhan  10 місяців тому

      Sure, just use the bootstrap components such as buttons and the modal dialog instead of the material ones!