@vercel/blob@2.7.0
·
3 commits
to main
since this release
Minor Changes
-
ad5a134: Add image optimization support: a new
optimizeImageoption onputand a newputFromUrlmethod. Both optimize the image through Vercel Image Optimization before storing it (only the optimized output is stored) and require OIDC authentication.const result = await put("avatars/foo.webp", body, { access: "public", optimizeImage: { width: 128, quality: 75, format: "webp" }, }); const result = await putFromUrl( "avatars/foo.webp", "https://example.com/photo.jpg", { access: "public", optimizeImage: { width: 128, quality: 75, format: "webp" }, } );