Cloudflare

Images

Cloudflare Images allows you to set up an image pipeline in minutes. Build a scalable image pipeline to store, resize, optimize and deliver images in a fast and secure manner.

Images you upload to Cloudflare Images are not attached to any domain in your Cloudflare account and you do not need a domain on Cloudflare to use the Cloudflare Images product.

Cloudflare Images allows developers to upload images using different methods, for a wide range of use cases:

How to upload images to Cloudflare

1 - Images Dashboard Upload

Use the dashboard to quickly upload a single image to your Cloudflare Images account.

After the upload finishes, your new image will appear in your list of files.

images_dashboard_upload_image_1

2 - Direct Creator Upload

The Direct Creator Upload feature in Cloudflare Images lets your users upload images with a one-time upload URL.

By using Direct Creator Upload, you can accept uploads without exposing your API key or token to the client.

It also eliminates the need for an intermediary storage bucket and the storage/egress costs associated with it.

images_direct_creator_upload_image_1

3 - URL Upload

URL upload is used for when you have your images uploaded already in a storage solution on the Internet and you want to deliver those images directly to your website.

This way, Cloudflare will fetch the image directly from the storage solution and store it on Cloudflare's Network.

url_upload_image_1

How to transform images on Cloudflare

Image editing on Cloudflare Images can be done using what we call Variants.

Variants are image transformations that you create and then apply to an image.

For example, imagine that you want to scale this next image down and blur it:

normal_variant_image_1

You would have to go to Cloudflare Images > Variants > and create a new Variant. Let's call it "ScaleDownAndBlur".

normal_variant_image_2

The next step would be to configure the values that you want. For example, let's place Blur at 50.

normal_variant_image_3

Finally, you just go to the image you want to edit with the Variant you created, and you select that Variant. You copy the URL and deliver it to your website.

normal_variant_image_5

The result would be this one:

normal_variant_image_6

Flexible Variants

Flexible Variants allow you to make changes to your images on the fly, by changing the parameters of the changes you want to do, within the URL of the image you want to deliver.

<img src="https://imagedelivery.net/<ACCOUNT_HASH>/<IMAGE_ID>/brightness=0.5">
flexible_variant_image_1

With Flexible Variants, you have additional options to transform your images, such as brightness, resizing, background color, image borders, contrast and many others.

Also, it makes it easier to automate the process of preparing your images to be displayed on your website.