Archived topic
Image Sizing in GP
1 reply · Started by Robert on June 20, 2018
I'm trying to avoid resizing at the point the browser renders the page. And, I'm also wondering how to make changing layout sizes more efficient since image sizes may change. To that end, what's the most efficient approach? I've been manually setting Media Sizes in WordPress but is that the right way for a responsive theme? Is there a GP function that creates appropriately sized images based on GP's layout and the size at which it's being viewed? If so, am I better served by leaving Media Sizes in WP blank?
Appreciate your help!
Hi there,
WordPress itself supports srcset, which serves up different images based on the width of the browser.
Here's the HTML of one of your images: https://www.screencast.com/t/D5G09zuQE9RE
You'll notices there's a few sizes in there already.
Let me know if this helps or not :)