Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ngx-image-cropper

Package Overview
Dependencies
Maintainers
1
Versions
111
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-image-cropper

An image cropper for Angular

  • 7.0.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
159K
increased by7.92%
Maintainers
1
Weekly downloads
 
Created

What is ngx-image-cropper?

The ngx-image-cropper is an Angular library that provides a highly customizable image cropping tool. It allows users to crop images in various shapes and sizes, and offers a range of features to enhance the image cropping experience.

What are ngx-image-cropper's main functionalities?

Basic Image Cropping

This feature allows users to crop images while maintaining a specific aspect ratio. The cropped image is emitted in the specified format (e.g., PNG).

<image-cropper [imageChangedEvent]="imageChangedEvent" [maintainAspectRatio]="true" [aspectRatio]="4 / 3" format="png" (imageCropped)="imageCropped($event)"></image-cropper>

Free Aspect Ratio Cropping

This feature allows users to crop images without maintaining a fixed aspect ratio, providing more flexibility in selecting the crop area.

<image-cropper [imageChangedEvent]="imageChangedEvent" [maintainAspectRatio]="false" format="jpeg" (imageCropped)="imageCropped($event)"></image-cropper>

Round Cropping

This feature allows users to crop images in a circular shape, which is useful for profile pictures and other round image requirements.

<image-cropper [imageChangedEvent]="imageChangedEvent" [maintainAspectRatio]="true" [aspectRatio]="1 / 1" [roundCropper]="true" format="png" (imageCropped)="imageCropped($event)"></image-cropper>

Image Rotation

This feature allows users to rotate the image before cropping, ensuring the image is properly oriented.

<image-cropper [imageChangedEvent]="imageChangedEvent" [maintainAspectRatio]="true" [aspectRatio]="4 / 3" format="png" (imageCropped)="imageCropped($event)" (imageLoaded)="imageLoaded()" (cropperReady)="cropperReady()" (loadImageFailed)="loadImageFailed()"></image-cropper>

Other packages similar to ngx-image-cropper

Keywords

FAQs

Package last updated on 27 Sep 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc