There are 2 repositories under mutool topic.
Minimal PDF to image converter using MuPDF
bash script to render thumbnails for various types of file