Overview
CloudFiles lets you resize and compress images directly through its shareable links. With simple URL parameters, you can define image dimensions, control quality, or limit file sizeβmaking it easier to deliver optimized visuals without any manual editing or external tools.
Delivering the right image size is crucial for performance, bandwidth management, and design flexibility. Large images can slow down email load times, consume unnecessary bandwidth, and disrupt the visual consistency of web pages. By resizing images on the fly, CloudFiles ensures that visuals are optimized for their intended use, enhancing user experience and operational efficiency.
Use Cases
The image resize feature can be useful across multiple workflows. Sales and marketing teams can share compressed product images, banners, or visuals in client emails or pitch decks, improving load times and delivery performance. It's also a powerful tool for automation workflows such as CRM triggers, webhook-based systems, or email campaigns. For example, an automation that generates proposal documents or sends follow-up emails can fetch a resized product image directly from the CloudFiles linkβeliminating the need for manual resizing or compression.
Parameters
To use the resize feature, the image link must be downloadable (i.e., include dl=1). Once set, the following optional parameters can be added to the URL:
- width: Set the target image width in pixels.
- height: Set the image height.
- quality: Set image quality (1β100).
- max_bytes: Limit the image file size in bytes.
Example:
https://test.cloudfiles.io/hBN8q1gfXRb?dl=1&width=1200&max_bytes=100000
This resizes the image to 1200px wide and compresses it to under 100KBβperfect for use in emails or embedding in lightweight pages.