Image - Compress

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 article detailing how to use the Encodian 'Image - Compress' and 'Resize an Image' actions to reduce the size of image files generated within PowerApps using Microsoft Flow: Reduce the size of images generated by PowerApps with Flow

Credit Count

This action consumes 1 credit per operation.

Note, different Encodian actions can consume different number 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
  • Image Type: Select the file format of the image file provided. 

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. 

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.
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk