From 191dc78651ff4853d013fd8fc979947424678b70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jochen=20Wersd=C3=B6rfer?= Date: Wed, 8 May 2024 12:27:43 +0200 Subject: [PATCH] #136 how to use shot-scraper to generate a cover image --- docs/post.rst | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/post.rst b/docs/post.rst index 90c3a3a3..9c911942 100644 --- a/docs/post.rst +++ b/docs/post.rst @@ -13,7 +13,17 @@ and used for sorting posts shown on the blog index page. Cover Image =========== -You can set a cover image for a post. +You can set a cover image for a post. For posts that don't have a cover image, +I usually generate one using the `shot-scraper `_ tool: + +.. code-block:: shell + + pipx install shot-scraper + shot-scraper install # installs chromium headless + shot-scraper shot https://wersdoerfer.de/blogs/ephes_blog/ -w 800 -h 400 --retina --quality 60 + +This will generate a screenshot of the blog post and save it as a jpeg. But you can also +use png. Tags ====