I've created simple bash script that helps converting pdf to images in case every page is made of rows/slices.

Here it is if anyone needs it:
https://gitlab.com/pklat/pdf2webp/-/...ster/README.md


Cheers.