Image - Resize

Power Automate Connector: Encodian – Image

Overview

The 'Image - Resize' flow action resizes the image provided to the specified configuration. Images can be resized to a percentage of the current image dimensions or specific dimensions, optionally selecting to preserve the image aspect ratio.

Example Flows

Please refer to the following example solutions:

Supported File Types

The following image file types are supported by this action.

  • jpg
  • gif
  • png
  • tiff
  • tif

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.

Default Parameters

The default 'Image - Resize' flow action parameters are detailed below:

  • Filename: The image filename to be processed (including the file extension).
  • File Content: A Base64 encoded representation of the image file to be processed.
  • Resize Type: Sets whether the image should be resized using the value of the 'Resize Percentage' field, or whether the image should be resized using the values of the 'Image Width' and 'Image Height' fields. 
  • Resize Percentage: Sets the percentage value for resizing the image. For example; 10 is equal to 10%, and 120 is equal to 120%. This field is only used when the 'Resize Type' field is set to 'Percentage'.
  • Image Width: Set a specific image width in pixels. This field is only used when the 'Resize Type' field is set to 'Specific'.
  • Image Height: Set a specific image height in pixels. This field is only used when the 'Resize Type' field is set to 'Specific'.
  • Maintain Aspect Ratio: This field is only used when the 'Resize Type' field is set to 'Specific'. 
    • Where only the 'Image Height' value is set, the 'Image Width' value is automatically set. 
    • Where only the 'Image Width' value is set, the 'Image Height' value is automatically set.
    • Where both the 'Image Width' value and 'Image Height' value are set, the dimension treated as the fixed value is set by the 'Aspect Ratio Reference Dimension' property

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 - Resize' flow action parameters are detailed below:

  • Aspect Ratio Reference Dimension: Used when 'Maintain Aspect Ratio' is true and both 'Image Width' and 'Image Height' are provided. Determines which dimension is treated as the fixed value when calculating the other dimension.
  • Image Resolution: Optional - specify an image resolution; by default, the current image resolution will be used.
  • Image Resolution Mode: Controls how the image resolution is changed when an 'Image Resolution' value is provided. 'Metadata' only updates the image DPI/PPI metadata without resampling pixels. 'Resample' adjusts pixel dimensions only when no explicit width, height, or percentage resize is requested.

Return Parameters

The 'Image - Resize' flow action returns the following data. 

Standard Return Values

  • Filename - The filename of the document.
  • FileContent - The processed image file.
  • 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