Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Responsive images crashing Grav

Started by Muut Archive 11 years ago · 6 replies · 318 views
11 years ago

Other media option seem to be fine, but as soon as I start using the [email protected] syntax, when I go to the page where the image will be output, it gives me a completely blank page. This is running on Yosemite via MAMP.

11 years ago

I've just tested this on my local and it seems to work fine. However, i'm currently running the latest github version. Could you please try a test with that and let me know if that resolves it? https://github.com/getgrav/grav

11 years ago

I'm having trouble getting the git version to load as the command line install doesn't seem to want to use my MAMP's version of php

11 years ago

btw this blog post contains an example of how to update your path to ensure the correct PHP version is used. You would just need to update that path with the one to the mamp version.

11 years ago

Got it running and yeah, the git version seems fine so I guess something must be missing in the zip one?

The responsive image code uses srcset, right? Is picturefil the right polyfill for old browsers?

11 years ago

Yah I thought perhaps there was a bugfix for retina in the github version that has not been released yet. Plan on having a release in a week or so.

Yup, uses srcset. More information on how it works and how the plugin fits in can be found in this blog post: http://getgrav.org/blog/retina-responsive-images

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1330 9 years ago
Archive · by Muut Archive, 9 years ago
2 922 9 years ago
Archive · by Muut Archive, 9 years ago
2 4052 9 years ago
Archive · by Muut Archive, 9 years ago
1 2930 9 years ago
Archive · by Muut Archive, 9 years ago
3 1109 9 years ago