Cloudinary icon

Cloudinary

Upload images and videos, build optimized transformation and delivery URLs, generate video players, and manage, search, tag, and edit metadata in your Cloudinary media library

Transform → Video: Resize

AI-generated

Overview

This node operation performs video resizing transformations using Cloudinary's media management service. It allows users to specify the target width and height for the video, how the video should fit within those dimensions (e.g., limit, fit, pad), and additional options such as padding background color. This operation is useful for preparing videos for different display sizes or optimizing video delivery by resizing.

Use Case Examples

  1. Resize a video to 800x600 pixels with padding and a specific background color for a website.
  2. Resize a video to a width of 1920 pixels while maintaining aspect ratio by setting height to 0.
  3. Chain multiple transformations by continuing from a previous transformation string to build complex video delivery URLs.

Properties

Name Meaning
Public ID The public identifier of the video asset in Cloudinary, including any folder path but excluding the file extension. Required to specify which video to transform.
Type The Cloudinary delivery type for the video asset, such as 'upload' for public assets or other types like 'fetch' or social media sources. Determines the URL path segment for delivery.
Continue From Transformation Optional transformation string to prepend before this resize operation's transformation, allowing chaining of multiple transformations into one delivery URL.
Width Target width in pixels for the resized video. Set to 0 to size by height only.
Height Target height in pixels for the resized video. Set to 0 to size by width only.
Fit How the video is fitted to the requested dimensions, such as limiting size without upscaling, fitting within dimensions, padding with color, or scaling exactly.
Pad Background Color to fill the padded area when using Pad fit modes. Options include black (default), auto (predominant color), blurred, or a solid color.
Background Color A named color or hex value to use as the pad background color when 'Solid Color' is selected.
Additional Options Additional optional parameters such as asset version to bust CDN caches.

Output

JSON

  • transformation - The resulting transformation string for the resized video, which can be used to build the delivery URL.
  • url - The full URL to the resized video asset with the applied transformation.

Dependencies

  • Cloudinary API credentials including cloud name, API key, and API secret

Troubleshooting

  • Ensure the Public ID is correct and includes any folder path but excludes the file extension to avoid asset not found errors.
  • Use 'Upload' type for public assets unless signed URLs are handled externally, as 'Private' and 'Authenticated' types require signed URLs which this node does not generate.
  • If chaining transformations, ensure the 'Continue From Transformation' string is correctly formatted to avoid malformed URLs.
  • Set width or height to 0 to maintain aspect ratio when resizing by only one dimension.

Links

Discussion