Stores Payload upload files in Cloudflare R2 buckets instead of local disk
Sharp Transformer
Image resizing, cropping and format conversion for Payload uploads
Installation
pnpm add @payloadcms/transformer-sharp About
Sharp Transformer processes images when they are uploaded to a Payload collection. On upload it creates resized variants at set dimensions, crops images, and converts them to formats such as WebP, storing the generated files with the original document. A site that needs one photo at several sizes gets them without a separate processing step.
It can also resize images on request. When enabled for chosen upload collections, a file URL with width or height parameters returns a resized copy on the fly. Maximum dimensions and pixel count are capped so requests cannot overload the server, and resized output is not cached, so public collections should pair it with access control or a CDN.
Package info
- Package name
@payloadcms/transformer-sharp- Latest version
4.0.0-internal.ff27d6e- Unpacked size
- 243 kB
- License
- MIT
- Weekly downloads
- 63.1k
- Last publish
- Nov 2, 2026
More from payloadcms
View profileAdds a parent field and breadcrumbs to collections so documents can nest inside each other
Sends Payload server errors and selected HTTP errors to Sentry with user context
Adds an SEO tab with meta title, description, image and search preview to collections
Stores collection uploads in Vercel Blob Storage instead of local disk
Lets one Payload admin panel manage content for many separate tenants
Similar adapters
More in OtherConnects a Payload project to Payload Cloud's file storage, email and upload caching
Contracts that connect Payload document content to external translation services
Mounts the Payload admin panel and APIs inside a React Router app
Adds AI-powered site search to Next.js sites, with a search widget and AI endpoints