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

support responsive images via <picture> element #316

Closed
maxheld83 opened this issue Jan 25, 2017 · 3 comments
Closed

support responsive images via <picture> element #316

maxheld83 opened this issue Jan 25, 2017 · 3 comments
Milestone

Comments

@maxheld83
Copy link
Contributor

maxheld83 commented Jan 25, 2017

when it comes to HTML outputs of bookdown, this blogdown issue also applies here: rstudio/blogdown#46

Except in bookdown, HUGO and Hugo themes CSS/HTML aren't in the picture, so I am wondering whether it might be easier to do this.

This is, admittedly, quite a long shot.

To explain why I'm even bringing this up: I sometimes have gitbook pages with a lot of quite detailed plots (scatter plots), and it is beginning to show in the load times.
Obviously, I don't want needlessly long load times, but I also like to provide high resolution plots for people on big / HiDPI screens etc.

@jemus42
Copy link

jemus42 commented Aug 8, 2017

I mentioned it in the other issue on blogdown, but my comment is still valid I guess:

You can use knitr hooks to customize the plot output HTML and it seems to work okay, especially if you don't need fancy gallery plugins like lightbox to work as well.

@yihui yihui added this to the v0.6 milestone Nov 15, 2017
@yihui
Copy link
Member

yihui commented Nov 15, 2017

I'll leave it to yourself to implement via the plot hook, since I feel this is too much work for me, and practically I don't have the time.

@yihui yihui closed this as completed Nov 15, 2017
@github-actions
Copy link

github-actions bot commented Nov 6, 2020

This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants