Convert Image

🧭 Definition

The Convert Image action in the Operations category enables you to convert an image from one file format to another within your Zenphi workflows. This action is especially useful when you need to standardize image formats for storage, sharing, or downstream automation processes. It supports a wide range of popular formats such as JPG, PNG, BMP, and GIF as input (excluding SVG), and allows output in formats like ICO, JPEG, PNG, and WebP.

With its simple yet powerful setup, this action helps streamline image processing tasks such as transforming uploaded images, optimizing files for web usage, or preparing assets for email or document generation.


Example Use Cases

1. Convert Uploaded Images for Standardization

Automatically convert images uploaded via Zenphi Form Trigger into a unified format like PNG or JPEG to maintain consistency across all user submissions.


2. Prepare Images for Email Attachments

Convert image files into WebP or JPEG format before attaching them to emails, ensuring compatibility and optimized file sizes for better email delivery.


3. Optimize Image Format for Storage

Transform large BMP files into WebP or JPEG to significantly reduce file size, making it easier to store and manage image archives efficiently.


4. Web Content Automation

Convert various image inputs to PNG for use in automated website content publishing or document generation processes.


5. Format Conversion in Document Workflows

When generating documents or reports dynamically, convert images to required formats to embed them properly into PDFs or Word templates.



🧩 Inputs

This section outlines all the configuration options available in the "Convert Image" action. Each field helps define what image you want to convert, how you want it converted, and what format it should output in.


1. File

(Please provide the image payload that you would like to convert...)

This is the actual image file you want to convert. It must be a supported image format such as JPG, PNG, BMP, or GIF. SVG is not supported.

  • How to use it:You can insert the image file from a previous action in your flow (like from a form upload, Google Drive file, or email attachment).
  • Example:If a user uploads a .bmp image in a form, you can reference that file here for conversion.

2. Output File Type

(Choose the desired output image format: ICO, JPEG, PNG, WEBP)

  • This dropdown lets you select the format you want the input image to be converted to. Depending on your target platform or use case, you can pick:

    • JPEG – Good for photography and emails.
    • PNG – Best for images with transparency or higher quality.
    • ICO – Ideal for favicons or small icon files.
    • WEBP – Great for web usage with smaller file sizes.
  • How to use it:Choose the format that suits where you're planning to use the image (e.g., JPEG for email, WebP for web apps).

  • Example:You want to convert all uploaded images to .webp for fast loading in a website builder app.


3. File Name

(Specify the name without extension for the converted file - optional)

This field allows you to set a custom file name (without the extension) for the output file. If left blank, Zenphi will auto-generate a name.

  • How to use it:You can set a dynamic name using variables or manually input a static name. Extensions like .jpg or .png are added automatically based on the format selected above.
  • Example:If you input contract-preview, and selected PNG, your output file will be named contract-preview.png.


📤 Outputs

After converting the image, this action provides a structured set of outputs that you can use in the following steps of your flow — such as saving the file, sending it by email, uploading it to storage, or logging the result.


1. File Name

(The name of the image file.)

This is the name of the newly converted image file. If you specified a name in the input settings, that name (plus the appropriate extension) will be used. If not, Zenphi will auto-generate one.

  • Usage:Use this value to refer to the converted file in other steps (e.g., attach it to an email, store it in Drive).
  • Example:If you set the file name as product-banner and chose PNG, this output will be product-banner.png.

2. File Size

(The size of the image file.)

Indicates the size of the converted image in bytes. This can be helpful for tracking storage usage or validating file limits before uploading.

  • Usage:You can use this to conditionally handle large files, or display file info to users.
  • Example:A converted image may return a file size of 154230 bytes (~150 KB).

3. Content Type

(This refers to the MIME type... e.g., image/png, image/jpeg)

This is the official MIME type of the converted file, which tells other systems what type of file it is (e.g., for rendering in a browser or attaching to a message).

  • Usage:Helpful when passing the file to systems that require explicit content-type headers (e.g., APIs, email services).
  • Example:If you converted the file to JPEG, this will return image/jpeg.

4. File Contents

(The file contents of the converted image...)

This output contains the actual binary file data of the converted image. It’s the value you'd use when uploading the file, saving it to storage, or attaching it elsewhere in your flow.

  • Usage:Plug this output into actions like Upload File, Send Email, or Save to Google Drive.
  • Example:You can map this output directly into an “Upload file to SharePoint” action to save the converted image.


🧩 Example: Converting Uploaded Logos to PNG Format for Consistency

Scenario:A marketing team collects logo files from external partners via a Zenphi Form. These logos are often submitted in various formats like JPEG, BMP, or GIF. To maintain consistency for use on their website and documents, the team wants all logos to be stored in PNG format in their Google Drive.

How it's implemented in Zenphi:

  1. A Zenphi Form collects the uploaded image file from the partner.

  2. The flow uses the "Convert Image" action:

    • File: Maps the uploaded image from the form.
    • Output File Type: Sets to PNG.
    • File Name: Optionally set based on the partner’s name or submission ID.
  3. The converted image is then uploaded to a Google Drive folder using a “Upload File” action.

Result:No matter what format the logos are submitted in, they’re all automatically converted to PNG and organized consistently — saving manual work and ensuring brand consistency.