TinyJPG - Compress a JPG image

Use the TinyJPG - Compress a JPG image action A tool for building the processes, logic, and direction within workflows. Actions are the steps the workflow performs to complete a process. to compress a JPEG (.JPG) image. This is useful if you want to make a website faster and use images with the best compression (in bytes).

For more information about TinyJPG, go to TinyJPG.

Configure the TinyJPG - Compress a JPG image action

  1. Add the action to the workflow and open the action configuration panel. For more information, see Add an action to the workflow.

  1. Select a Connection. If you do not have a connection, see Add a connection.
  2. Select or insert a variable for the Image.

  3. Create or select a variable for the output.

TinyJPG - Compress a JPG image action fields and settings

Section

Field

Description

Variable types

(Unlabeled)

Connection Credentials and other settings that enables workflows to communicate with external systems, services, or applications. It's required to pass data between the workflow and the indicated service, which could be a cloud service, business application, or content store.

The TinyJPG connection to use to compress a JPG image.

To refresh the available connections, click .

(n/a)

(Unlabeled) Image The variable containing the image file to compress.

Note: Your tenancy's default file storage location must be configured to hold files for later reference by the workflow. This location is used for uploaded files and for files stored as output from actions.

File
Output Compressed image details Stores the result of the action as an object. See Developer API for more information. The following values are returned:
  • Input Stores the result of the action as an object. The following values are returned:
    • Size: (Integer) The size of the input file in bytes.
    • Type: (Text) The type of the input file for example "image/JPG".
  • Output: Stores the result of the action as an object. The following values are returned:
    • Size: (Integer) The size of the output file in bytes.
    • Type: (Text) The type of the output file, for example "image/JPG".
    • Width: (Integer) The width of the compressed image.
    • Height: (Integer) The height of the compressed image.
    • Ratio: (Decimal) The compression ratio, file output size divided by file input size. For example input size = 433805, output size = 4316. Ratio: (433805/4316) = 0.0099.
    • Download URL: (Text) The URL link to the compressed file.
Object