Data Types

External HTTP URLs

Optimize your site's existing images, videos, and audio with Bytescale by adding your site's base URL as a file source.

Process files hosted elsewhere.

Optimize images and videos to reduce page load times.

Learn about: Edge Caching, Permanent Caching, and Image Optimization to reduce page load times.

Requests to transform files from external HTTP URLs may incur additional latency due to internal download operations:

  • Video and audio transformations incur ~1 second of extra latency per 75MB of input file size when using external HTTP URLs.*

  • Image transformations incur no extra latency: the performance is the same as using Bytescale's Built-in Storage.

*

Applies to the first request only: once the result is cached all subsequent requests to the same URL will return near-instantly.

Bytescale supports two options for processing externally-hosted files:

To process files from a fixed base URL:

  1. Create a folder in the Bytescale Dashboard.

  2. Edit the folder's settings.

  3. Click on "Storage Settings".

  4. Change "Storage Type" to "External HTTP URL".

  5. For "Use a Base URL" select "Yes"

  6. Enter the base URL to fetch files from.

  7. Click on "Save Changes". (Don't forget this step before continuing!)

  8. Try it out:

    1. Copy the "Example CDN URL" from the UI.

    2. Replace "example.jpg" with a relative path you want to fetch from the underlying URL.

    3. To process the file, try using the Image Processing API.

To process files from any URL at runtime:

  1. Create a folder in the Bytescale Dashboard.

  2. Edit the folder's settings.

  3. Click on "Storage Settings".

  4. Change "Storage Type" to "External HTTP URL".

  5. For "Use a Base URL" select "No"

  6. Click on "Save Changes". (Don't forget this step before continuing!)

  7. Try it out:

    1. Copy the "Example URL" from the UI.

    2. Replace "https://assets.bytescale.com/example.jpg" with a URL you want to fetch.

    3. To process the file, try using the Image Processing API.

For reference, the "Storage Settings" section of the "Folder Settings" page is shown below:

Configuring an AWS S3 bucket

These pages may also be helpful:

Was this section helpful? Yes No

You are using an outdated browser.

This website requires a modern web browser -- the latest versions of these browsers are supported: