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

Expose tidy_thumbnail_resize() #10

Closed
hadley opened this issue May 20, 2020 · 2 comments
Closed

Expose tidy_thumbnail_resize() #10

hadley opened this issue May 20, 2020 · 2 comments

Comments

@hadley
Copy link
Member

hadley commented May 20, 2020

  • Get active post from rstudioapi
  • Resize thumb-sq.jpg to 300x300 (warn if not square)
  • Resize thumb-wd.jpg to 200 high and warn if <1000 wide
@apreshill
Copy link
Collaborator

Hugo also comes with image processing on that end if you would rather: https://gohugo.io/content-management/image-processing/

I did some image resizing on tidymodels.org: https://github.com/tidymodels/tidymodels.org/blob/master/layouts/_default/list.html#L32-L39

The main downside is it creates a new root directory called resources: https://github.com/tidymodels/tidymodels.org/tree/master/resources/_gen/images/books

@hadley
Copy link
Member Author

hadley commented May 20, 2020

I think it's slightly better to resize before commit to git (and easy enough to do in R).

@hadley hadley closed this as completed in d65fdd7 May 20, 2020
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