@capacitor-community/image-manipulator
Capacitor community plugin to manipulate images (resize, compress, crop etc.)
Maintainer | GitHub | Active |
---|---|---|
ryaa | ryaa | yes |
This plugins allows to resize images.
Features:
- supports resizing image
- supports Android and iOS platforms
NOTE: The plugin version 1.0.0 is compatible with Capacitor 5 which requires gradle version 8.0
Capacitor version | Plugin version |
---|---|
6.x | 6.x |
- iOS
- Android
npm install @capacitor-community/image-manipulator
npx cap sync
echo(options: { value: string; }) => Promise<{ value: string; }>
Param | Type |
---|---|
options |
{ value: string; } |
Returns: Promise<{ value: string; }>
import { ImageManipulator } from '@capacitor-community/image-manipulator';
const options: ImageResizeOptions = {};
await ImageManipulator.resize(options);