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

Feature Request: Rendering specific slide in a ratio that is suitable for shared card image #59

Open
uriahf opened this issue Jun 26, 2022 · 1 comment

Comments

@uriahf
Copy link

uriahf commented Jun 26, 2022

Hi!

Following @gadenbuie advice I open this issue as a feature request:
Originally posted by @uriahf in gadenbuie/garrickadenbuie-com#115 (comment)

I want to render specific slides as an image for my social cards, @gadenbuie explained how to do it in his blog post but this solution works only for the first slide of the presentation.

I made a small workaround:
I created a new presentation that contains only the desired slide but with the ratio: 191:100 and then I used the code from the mentioned blog post:

https://github.com/uriahf/nb_step_by_step/blob/master/render_image_for_social_card.Rmd

It might be really useful to have a function for that :)

@uriahf uriahf changed the title Rendering specific slide in a ratio that is suitable for shared card image Feature Request: Rendering specific slide in a ratio that is suitable for shared card image Jun 26, 2022
@jhelvy
Copy link
Owner

jhelvy commented Jun 29, 2022

Thanks @uriahf, this is a good idea. We already have a slides argument in to_png(), so we could attempt to incorporate that same argument in to_social(). We're working on getting the first version of the package up on CRAN at the moment, so I'll keep this idea here and we can add it to the next version.

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

No branches or pull requests

2 participants