Use this API to reduce the file size of an image.Documentation Index
Fetch the complete documentation index at: https://docs.rebellapp.com/llms.txt
Use this file to discover all available pages before exploring further.
Parameters
| Property | Type | Required | Description |
|---|---|---|---|
| apFilePaths | Array | Yes | Array of image paths to compress |
| compressLevel | Number | No | Compression level (0-4, default: 4) |
| success | Function | No | Callback with compressed paths |
| fail | Function | No | Callback on failure |
| complete | Function | No | Callback that always executes |
Success Callback
| Property | Type | Description |
|---|---|---|
| apFilePaths | Array | Paths to compressed images |