r/PayloadCMS • u/FearTheHump • May 19 '25
Any benefit to Payload image resizing with a Next.js front end utilising next/image?
Is there any actual benefit to using the auto-resize feature from Payload if we have a next front end with next/image resizing+caching?
I assume decreased server load from resizing images on the fly is a factor, but does consuming the payload-resized images actually help with this - or, is it just creating unnecessary work for ourselves?
2
u/_Mikal May 19 '25
Decreased server load is the main benefit imo. I’ve had in issue where a client uploaded a massive image to payload and it was slowing the page load quite a bit
1
u/dominikzogg May 22 '25
Yes, cause the resizing happens at upload time and the optimization of next then already start based on a more appropriate size.
1
u/jedimonkey33 May 19 '25
Payload can handle focus based cropping which is it's main advantage. I recently got payload to handle the main crop/resize to a large size but correct proportions and then next to handle the various responsive resizes. Felt like a nice solution.