Skip to content

Commit

Permalink
#136 how to use shot-scraper to generate a cover image
Browse files Browse the repository at this point in the history
  • Loading branch information
ephes committed May 8, 2024
1 parent edd6f7c commit 191dc78
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion docs/post.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 <https://github.com/simonw/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
====
Expand Down

0 comments on commit 191dc78

Please sign in to comment.