Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retina Image Core Ability? #51

Closed
bobrocke opened this issue Sep 8, 2014 · 4 comments
Closed

Retina Image Core Ability? #51

bobrocke opened this issue Sep 8, 2014 · 4 comments
Labels

Comments

@bobrocke
Copy link

bobrocke commented Sep 8, 2014

A wonderful feature that might well differentiate Grav from others even more would be the built-in ability to deal with responsive images.

Perhaps if the Markdown markup called for an image in the traditional way, Grav could be smart enough to know the screen resolution of the display and serve the regular, or the @2x image.

Possible?

@mahagr mahagr added the question label Sep 8, 2014
@rhukster rhukster changed the title Responsive Image Core Ability? Retina Image Core Ability? Sep 8, 2014
@rhukster
Copy link
Member

rhukster commented Sep 9, 2014

We'll look into the feasibility of this. Thanks for the suggestion.

@andylima
Copy link

I think this is not something that Grav should do all by itself, because it is being solved by two new HTML features (srcset, and picture) that are already implemented (Chrome) or being implemented (Safari, Firefox) on the most modern browsers, and Internet Explorer will eventually implement them, too:

@andylima
Copy link

Given these two new HTML features, it would be indeed great if Grav would generate code with srcset and picture automatically, either when certain markdown markup is used, or, maybe even better, when there are image files with some suffix, eg:

@bobrocke
Copy link
Author

I think this one must be covered now with the changes in grav 0.9.16 plus the srcset-fallback plug-in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants