If you’re open to CLI tools, `convert` from ImageMagick works wonders:
```python
import subprocess
subprocess.run(['convert', 'image.webp', 'output.pdf'])
```
Not pure Python, but it’s *fast* and handles batches easily. Just `apt-get install imagemagick` first.
```python
import subprocess
subprocess.run(['convert', 'image.webp', 'output.pdf'])
```
Not pure Python, but it’s *fast* and handles batches easily. Just `apt-get install imagemagick` first.
