JigsawStack icon

JigsawStack

Use JigsawStack API

Actions20

Translate Image → Translate Image

AI-generated

Overview

The Translate Image node uses the JigsawStack API to translate text within images from a specified source language to a target language. It supports input images either via a direct URL or a file store key from JigsawStack File Storage. The node is useful for scenarios where users need to translate text embedded in images, such as translating signs, documents, or screenshots in different languages. It can return the translated image in various formats including Base64, URL, or binary data, making it versatile for different integration needs.

Use Case Examples

  1. Translating a product label image from English to Spanish by providing the image URL and specifying 'es' as the target language.
  2. Translating a scanned document image stored in JigsawStack File Storage by providing the file store key and receiving the translated image as a Base64 string for embedding in a report.

Properties

Name Meaning
Image Source Selects the source of the image to be translated, either via a direct URL or a file store key from JigsawStack File Storage.
Image URL The URL of the image to translate, required if 'Image Source' is set to 'Image URL'.
File Store Key The key used to retrieve the image from JigsawStack File Storage, required if 'Image Source' is set to 'File Store Key'.
Target Language The language code to translate the image text into, e.g., 'es' for Spanish.
Return Type The format in which the translated image is returned. Options include Base64 string, URL, or binary data.
Request Options Additional settings for the request such as batching, SSL certificate validation, proxy configuration, and timeout settings.

Output

Binary

Contains the translated image data if the 'Return Type' is set to binary.

JSON

  • translatedImageUrl - URL of the translated image if 'Return Type' is set to URL.
  • translatedImageBase64 - Base64 encoded string of the translated image if 'Return Type' is set to Base64.
  • translatedImageBinary - Binary data of the translated image if 'Return Type' is set to binary.

Dependencies

  • JigsawStack API key credential required for authentication.

Troubleshooting

  • Ensure the provided image URL or file store key is valid and accessible; invalid inputs will cause errors.
  • Verify the target language code is supported by the JigsawStack API to avoid translation failures.
  • If using binary return type, ensure the workflow consuming the binary data can handle it properly.
  • Check network connectivity and proxy settings if requests fail or time out.
  • If SSL issues occur, consider enabling the 'Ignore SSL Issues' option, but be aware of security implications.

Discussion