Archived topic
How to skip creating intermediate sizes when uploading images to a gallery
3 replies · Started by Rafał on August 31, 2021
I appreciate GeneratePress & GP Premium for its possibilities and flexibility, but mostly performance. This time the aim is to save server space.
My website will use plenty of big galleries. I'm sure won't need other sizes than the thumbnail (medium at most) and full of any image uploaded to a gallery (Gallery Block).
How to set a conditional – while inserting the Gallery block – skip creating intermediate image sizes: medium_large, and large, but leave them for every other use case?
Hi there,
The gallery block is a core block from WordPress so the theme has no control over this:
https://wordpress.org/support/article/gallery-block/
I'd recommend checking with WordPress' support team.
Thanks for your understanding :)
I had no doubts about this – GP has no deal with image sizes – I was rather counting for your abilities and creativity in PHP filters ;)
Regards
WordPress' support team should be point you in the right direction if there is a solution :)