@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" />