@capgo/capacitor-file-compressor
Overview
Section titled “Overview”@capgo/capacitor-file-compressor resizes and re-encodes images on device before upload. Control max width, height, quality, and output format (JPEG, PNG, WebP, plus HEIF on iOS). EXIF is stripped for privacy.
Platform support
Section titled “Platform support”| Platform | Engine |
|---|---|
| iOS | ImageIO |
| Android | Bitmap |
| Web | Canvas |
Core Capabilities
Section titled “Core Capabilities”compressImage- Compresses an image file with specified dimensions and quality settings.
Public API
Section titled “Public API”| Method | Description |
|---|---|
compressImage | Compresses an image file with specified dimensions and quality settings. |
getPluginVersion | Get the native Capacitor plugin version. |
Source Of Truth
Section titled “Source Of Truth”This reference is synced from src/definitions.ts in capacitor-file-compressor.
Keep going from @capgo/capacitor-file-compressor
Section titled “Keep going from @capgo/capacitor-file-compressor”If you are using @capgo/capacitor-file-compressor to plan storage and file handling, connect it with Using @capgo/capacitor-file-compressor for the native capability in Using @capgo/capacitor-file-compressor, @capgo/capacitor-data-storage-sqlite for the implementation detail in @capgo/capacitor-data-storage-sqlite, Using @capgo/capacitor-data-storage-sqlite for the native capability in Using @capgo/capacitor-data-storage-sqlite, @capgo/capacitor-file for the implementation detail in @capgo/capacitor-file, and Using @capgo/capacitor-file for the native capability in Using @capgo/capacitor-file.