mirror of
https://github.com/metafy-social/python-scripts.git
synced 2024-11-27 22:11:10 +00:00
Add files via upload
This commit is contained in:
parent
6c6a236407
commit
19b317ad40
BIN
scripts/png-to-pdf.png
Normal file
BIN
scripts/png-to-pdf.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 19 KiB |
5
scripts/png-to-pdf.py
Normal file
5
scripts/png-to-pdf.py
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
from PIL import Image
|
||||||
|
|
||||||
|
image1 = Image.open(r'C:\Users\user\Downloads\png-to-pdf.png')
|
||||||
|
impdf = image1.convert('RGB')
|
||||||
|
impdf.save(r'C:\Users\user\Downloads\png-to-pdf.pdf') # noqa
|
Loading…
Reference in New Issue
Block a user