Power Automate Connector: Encodian – Image
Overview
The 'Image - Compress' flow action compresses either a 'PNG' or 'JPG' image file to reduce the size of the file. Re-compressing previously compressed files can result in image quality reduction.
To resize an image, please review the Resize an Image documentation.
Example Flow
Please refer to the following articles:
- Reduce the size of images generated by PowerApps with Flow
- Compress, Resize, then Convert Image to DataUri in Power Automate
Credit Count
This action consumes 1 credit per operation.
Note, different Encodian actions can consume different numbers of credits. Please always check the action-specific documentation and read What is an Encodian Action for a full description of how credits are consumed.
Parameters
The default 'Image - Compress' flow action parameters are detailed below:
- File Content: A Base64 encoded representation of the image file to be converted
File Content
Please refer to the Obtaining the 'File Contents' Parameter article for guidance on how to obtain the 'File Content' parameter ready to provide to an Encodian flow action.
Advanced Parameters
The advanced 'Image - Compress' flow action parameters are detailed below:
- Compression Level: Set the compression level where a higher level provides greater compression
Note: For PNGs, a higher compression level does not always mean a smaller file. Levels 4–6 can sometimes use compression choices that are less efficient for a specific image than levels 1–3, especially if the PNG is already optimised or simple. Quality stays the same, but the file size may occasionally be larger.
Return Parameters
The 'Image - Compress' flow action returns the following data.
Standard Return Values
- Filename - An arbitrary filename for the processed image file.
- FileContent - The processed image content (Base 64).
- OperationId - The unique ID assigned to this operation.
- HttpStatusCode - The HTTP Status code for the response.
- HttpStatusMessage - The HTTP Status message for the response.
- Errors - An array of error messages should an error occur.
- Operation Status - Indicates whether the operation has been completed, has been queued or has failed.
0 Comments