olefredrik / FoundationPress

FoundationPress is a WordPress starter theme based on Foundation 6 by Zurb
https://foundationpress.olefredrik.com
MIT License
2.7k stars 867 forks source link

Automatic Resizing of images #1393

Open FrankLauda opened 5 years ago

FrankLauda commented 5 years ago

Hi,

I've got a problem with the original image src size. I'm not sure why but the original image size seem to be a set size. So image the image is larger than this set size I'm getting image pixelation.

So, in this case, the "intrinsic size" is always 1024px wide. So from what I can tell this is maximum image width. But I've set this size to be 'fp-large' which is 1200px wide. So why is the image not rendering at this size? The original uploaded image size is about 1300px wide. I've attached a screenshot which shows what's happening. Screen Shot 2019-07-08 at 8 35 53 am

ns-rx commented 5 years ago

Hi Frank

Check the library --> responsive-images.php file. There's a function there that limits the size of full width images. I remember having a similar issue a while ago and I think I resolved it by commenting out that function.