CF Images - transformations vs variants
With the new(ish) Images product, I'm confused the difference between Transformations and Variants.
My plan is to use R2 to store images, and use the Images product to sit in front of the R2 to serve them (with flexible variants).
https://developers.cloudflare.com/images/transform-images/
https://developers.cloudflare.com/images/manage-images/create-variants/
Transform images · Cloudflare Image Optimization docs
Transformations let you optimize and manipulate images stored outside of the Cloudflare Images product. Transformed images are served from one of your …
Create variants · Cloudflare Image Optimization docs
Variants let you specify how images should be resized for different use cases. By default, images are served with a public variant, but you can create …
2 Replies
Variants refer to images that are stored in the Images product, while transformations are requests to transform images that are stored outside of the Images product (like in R2)
If you're storing your images in R2, then you'll want to refer to the documentation pages under "Transform images" rather than "Manage uploaded images"
thank you