I feel you—webp can be annoying. Have you tried `img2pdf`? It’s super lightweight and handles webp to pdf with python in like 3 lines:
```python
import img2pdf
with open("output.pdf", "wb") as f:
f.write(img2pdf.convert(['image.webp']))
```
No intermediate steps needed. Just `pip install img2pdf` and you’re golden.
```python
import img2pdf
with open("output.pdf", "wb") as f:
f.write(img2pdf.convert(['image.webp']))
```
No intermediate steps needed. Just `pip install img2pdf` and you’re golden.
