·
1 commit
to main
since this release
Minor Changes
- 8b49164: Add
putImage(pathname, bodyOrUrl, options): optimizes an image through Vercel Image Optimization and stores only the optimized output. The source can be the image content itself (string, File, Blob, Buffer or Stream) or aURLinstance pointing at a public http(s) image, which is fetched server-side. Options mirrorput(access, addRandomSuffix, allowOverwrite, cacheControlMaxAge, ifMatch) plus the requiredoptimizeImageparameters (width,quality,format);contentTypeis not accepted since the stored content type always comes from the optimizer output. Deprecates theoptimizeImageoption onputand theputFromUrlfunction in favor ofputImage; both keep working.