mirror of
https://github.com/metafy-social/python-scripts.git
synced 2024-11-30 23:41:12 +00:00
5 lines
128 B
Python
5 lines
128 B
Python
from PIL import Image
|
|
|
|
image1 = Image.open(r'png-to-pdf.png')
|
|
impdf = image1.convert('RGB')
|
|
impdf.save(r'png-to-pdf.pdf') # noqa |