ImageTransformer
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:8923
Methods
Section titled “Methods”draw()
Section titled “draw()”draw(
image,options?):ImageTransformer
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:8936
Draw an image on this transformer, returning a transform handle. You can then apply more transformations, draw, or retrieve the output.
Parameters
Section titled “Parameters”The image (or transformer that will give the image) to draw
ReadableStream<Uint8Array<ArrayBufferLike>> | ImageTransformer
options?
Section titled “options?”The options configuring how to draw the image
Returns
Section titled “Returns”ImageTransformer
output()
Section titled “output()”output(
options):Promise<ImageTransformationResult>
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:8945
Retrieve the image that results from applying the transforms to the provided input
Parameters
Section titled “Parameters”options
Section titled “options”Options that apply to the output e.g. output format
Returns
Section titled “Returns”Promise<ImageTransformationResult>
transform()
Section titled “transform()”transform(
transform):ImageTransformer
Defined in: .pnpm-home/store/v11/links/@cloudflare/workers-types/4.20251118.0/2891147a4db443bf13ca098dcb7381fb6bac5793758b7fd187ebaf5bc0deb969/node_modules/@cloudflare/workers-types/index.ts:8929
Apply transform next, returning a transform handle. You can then apply more transformations, draw, or retrieve the output.
Parameters
Section titled “Parameters”transform
Section titled “transform”Returns
Section titled “Returns”ImageTransformer