File size limit for transform images on cf worker

Hi, We have a worker that is setup to transform images. It works fine until the file is over 20 MB. Anything above that size returns 9402 file size too large. For example jpeg from a 40 MP camera is around 35 MB and within the specified dimensions. According to https://developers.cloudflare.com/images/transform-images/ it should handle up to 70 MB files. Is there a settings somewhere we are missing? Code snippet used on our BE for the transformation: const r2Path = generateR2Path(company_id, r2_id); const imageFile = await env.R2.get(r2Path); ... const transformationResponse = ( await env.IMAGES.input(imageFile.body) .transform({ width: 1200, height: undefined, fit: "scale-down", }) .output({ format: "image/jpeg", }) ).response();
Cloudflare Docs
Transform images
Transformations let you optimize and manipulate images stored outside of the Cloudflare Images product. Transformed images are served from one of your zones on Cloudflare.
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?