@image-auto-crop/angular
v0.0.1-alpha.4
Published
![npm](https://img.shields.io/npm/v/%40image-auto-crop%2Fangular)
Downloads
2
Readme
@image-auto-crop/angular
An Angular wrapper for image-auto-crop.
Install
Install with the peer dependency @image-auto-crop/core
:
npm i @image-auto-crop/core @image-auto-crop/angular
Usage
This package provides an ImageAutoCropDirective
directive which can be applied to a standard img
element.
Example:
import { ImageAutoCropDirective } from '@image-auto-crop/angular';
@Component({
imports: [ImageAutoCropDirective],
...
})
<img autoCrop src="example.png" alt="Example" />