Skip to main content

Overview

Welcome to the Cloudinary integration guide for Julep! This integration allows you to manage and transform media files efficiently, enabling you to build workflows that require robust media processing capabilities. Whether you’re uploading images or editing videos, this guide will walk you through the setup and usage.

Prerequisites

To use the Cloudinary integration, you need an API key, API secret, and cloud name. You can obtain these by signing up at Cloudinary.

How to Use the Integration

To get started with the Cloudinary integration, follow these steps to configure and create a task:
1

Configure Your API Key

Add your API key, API secret, and cloud name to the tools section of your task. This will allow Julep to authenticate requests to Cloudinary on your behalf.
2

Create Task Definition

Use the following YAML configuration to define your media processing task:
Cloudinary Example

YAML Explanation

  • name: A descriptive name for the task, in this case, “Cloudinary Task”.
  • tools: This section lists the tools or integrations being used. Here, cloudinary_tool is defined as an integration tool.
  • type: Specifies the type of tool, which is integration in this context.
  • integration: Details the provider and setup for the integration.
    • provider: Indicates the service provider, which is cloudinary for Cloudinary.
    • method: Specifies the method to use, either media_upload or media_edit. Defaults to media_edit if not specified.
    • setup: Contains configuration details
      • cloudinary_cloud_name: (Required) The cloud name of the Cloudinary account.
      • cloudinary_api_key: (Required) The API key of the Cloudinary account.
      • cloudinary_api_secret: (Required) The API secret of the Cloudinary account.
      • params: (Optional) Optional parameters for the configuration.
  • main: Defines the main execution steps.
    • tool: Refers to the tool defined earlier (cloudinary_tool).
    • arguments: Specifies the input parameters for the tool:
      • file: The URL of the file to upload. More details can be found in the Cloudinary documentation.
      • public_id: (optional) Optional public ID for the uploaded file. Defaults to None.
      • upload_params: (optional) Optional transformations for the upload. Defaults to None.
      • return_base64: (optional) Whether to return the file in base64 encoding. Defaults to False.
      • public_id: The public ID of the file to edit.
      • transformation: The transformations to apply to the file.
      • return_base64: Whether to return the transformed file in base64 encoding.
Remember to replace CLOUDINARY_CLOUD_NAME, CLOUDINARY_API_KEY, and CLOUDINARY_API_SECRET with your actual credentials.
The different parameters available for the Cloudinary integration can be found in the Cloudinary API documentation.

Conclusion

With the Cloudinary integration, you can efficiently manage and transform media files. This integration provides a robust solution for media processing, enhancing your workflow’s capabilities and user experience.
For more information, please refer to the Cloudinary documentation.