Skip to content

Commit

Permalink
Readme now compiling, and smaller image
Browse files Browse the repository at this point in the history
  • Loading branch information
robjhyndman committed Dec 22, 2022
1 parent 5228a87 commit 16b7ec7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions README.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,16 @@ library(quarto)
library(magick)
# Render template
fs::dir_copy("_extensions/letter", "_extensions/numbats/letter")
quarto_render(input = "template.qmd")
fs::dir_delete("_extensions/numbats")
# Convert rendered PDF to PNG
image_read_pdf("template.pdf") |>
image_montage(geometry = "x2000+25+35", tile = "3", bg = "grey92", shadow = TRUE) |>
image_convert(format = "png") |>
image_read_pdf("template.pdf", pages = 1) |>
image_montage(geometry = "x500+25+35", tile = 1, bg = "grey92", shadow = TRUE) |>
image_convert(format = "png") |>
image_write("examples/template.png")
# Move pdf to examples folder
fs::file_move("template.pdf", "examples/template.pdf")
fs::file_copy("template.pdf", "examples/template.pdf", overwrite = TRUE)
```

# Monash Letter Format Template
Expand Down
Binary file modified examples/template.pdf
Binary file not shown.
Binary file modified examples/template.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 16b7ec7

Please sign in to comment.