-
Notifications
You must be signed in to change notification settings - Fork 862
Responsive images (srcset) and WordPress 4.7 #929
Comments
Hi @David-van-den-Bor It should work as you describe. I just uploaded a big image to a fresh install, running on WordPress 4.7. In my wp-content/uploads, I can see different sizes of the image I just uploaded. If you haven't modified functions.php or responsive-images.php this should work out of the box for new uploads. Please note that enabling FoundationPress will not do anything to your existing images that's already in your wp-content/uploads directory. I will recommend using a plugin such as Regenerate Thumbnails (1+ million active installs, 4.7 rating). This plugin is very handy if you're switching to a new theme with different image settings. |
Hi Ole! I'll keep looking into it. |
OK, just checked: the problem ONLY occurs when I'm developing localhost in AMPPS (Mac Osx Sierra) When I migrate sites to online (from local to online) the IMAGE generation WORKS online! hmm. I'll keep looking into this. |
So seems GD extension is not active on your local PHP settings! :) |
@David-van-den-Bor : Great! Interchange uses media queries to dynamically load responsive content that is appropriate for the user's device. For images, I think that using srcset is a better approach. But interchange can still be used for html and background images. |
How can this bug be reproduced?
What I expected to happen?
WordPress generates the differently sized versions of the image in the uploads folder
What happened instead?
WordPress just uploads the original image exactly as is, and doesn't generate the different image sizes(?)
Is this the default out-of-the-box behaviour of FoundationPress? Should I change a default setting somewhere? Are the different image sizes not needed?
Kind regards and thanxx in advance :-)
David van den Bor
The text was updated successfully, but these errors were encountered: