Closed dmvdven closed 3 days ago
@dmvdven did you also pass Sharp to your config? You need to both install it and provide it to your Payload config in order for image sizes to be generated.
See here: https://github.com/payloadcms/payload-3.0-demo/blob/main/payload.config.ts#L121
Thanks @jmikrut. Couldn't find this in the docs. It's working now!
Link to reproduction
No response
Payload Version
3.0.0-beta.32
Node Version
20.13.1
Next.js Version
14.3.0-canary.37
Describe the Bug
Hi,
I'm using the code below to enable additional image sizes. Images get uploaded successfully, but no additional image sizes are created on upload.
I do have the
sharp
dependency installed. Am I doing something wrong?Reproduction Steps
Use the code as shown above.
Adapters and Plugins
No response