Skip to main content

ImageWithProfile

Image URL with a profile.

type ImageWithProfile {
image(
transforms: ImageTransformsInput
): URL!
profile: String!
transformTemplate: String
}

Fields

ImageWithProfile.image ● URL! non-null scalar references

Image URL.

ImageWithProfile.image.transforms ● ImageTransformsInput input references

ImageWithProfile.profile ● String! non-null scalar references

Image profile.

ImageWithProfile.transformTemplate ● String scalar references

RFC 6570 compliant image URL template.

The options named variable can be used to expand any values supported by Cloudflare Images.

See Cloudflare Images - Transform via URL for supported values.

Example NodeJS implementation using url-template:

import urlTemplate from 'url-template'
// transformTemplate: https://localpublic-image.org/i/{options*}/26c475fd-ad82-467b-8c07-082bc214cf00
const template = urlTemplate.parse(transformTemplate)
const transformedImageUrl = template.expand({
options: {
format: 'webp',
height: 612,
width: 1312,
}
})
// transformedImageUrl: https://localpublic-image.org/i/format=webp,height=612,width=1312/26c475fd-ad82-467b-8c07-082bc214cf00

Member Of

HomeScreenHero object ● NormalizedShow object ● NormalizedVideo object ● Station object