mirror of
https://github.com/metafy-social/python-scripts.git
synced 2025-01-18 15:27:07 +00:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
f57e927816
16
README.md
16
README.md
|
@ -88,6 +88,13 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
|
|||
</a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<a href="https://github.com/Farhan-2222">
|
||||
<img src="https://avatars.githubusercontent.com/u/87274221?v=4" width="100;" alt="Farhan-2222"/>
|
||||
<br />
|
||||
<sub><b>Md Farhan Sajid</b></sub>
|
||||
</a>
|
||||
</td>
|
||||
<td align="center">
|
||||
<a href="https://github.com/agnxsh">
|
||||
<img src="https://avatars.githubusercontent.com/u/80243668?v=4" width="100;" alt="agnxsh"/>
|
||||
|
@ -122,15 +129,15 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
|
|||
<br />
|
||||
<sub><b>Aswin Shailajan</b></sub>
|
||||
</a>
|
||||
</td>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<a href="https://github.com/noobyysauraj">
|
||||
<img src="https://avatars.githubusercontent.com/u/81681419?v=4" width="100;" alt="noobyysauraj"/>
|
||||
<br />
|
||||
<sub><b>Sauraj</b></sub>
|
||||
</a>
|
||||
</td></tr>
|
||||
<tr>
|
||||
</td>
|
||||
<td align="center">
|
||||
<a href="https://github.com/srinjoy-26">
|
||||
<img src="https://avatars.githubusercontent.com/u/91176055?v=4" width="100;" alt="srinjoy-26"/>
|
||||
|
@ -165,7 +172,8 @@ Thanks a lot for spending your time helping! Keep rocking 🍻
|
|||
<br />
|
||||
<sub><b>Null</b></sub>
|
||||
</a>
|
||||
</td>
|
||||
</td></tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<a href="https://github.com/SameerSahu007">
|
||||
<img src="https://avatars.githubusercontent.com/u/29480670?v=4" width="100;" alt="SameerSahu007"/>
|
||||
|
|
9
scripts/PNG_To_PDF/README.md
Normal file
9
scripts/PNG_To_PDF/README.md
Normal file
|
@ -0,0 +1,9 @@
|
|||
This script consist of python code which converts PNG to PDF.
|
||||
|
||||
It has a PNG image to use as example. For different image just write url of different image which you want to use/ replace "image.png" with total url of the image file.
|
||||
|
||||
Write the location of the PDF to be saved at/ replace 'document.pdf' with the total url and name of pdf along with pdf extension.
|
||||
|
||||
I have used flake8 linting on this as well.
|
||||
|
||||
Dependency: Download python and write "pip install Pillow" in cmd.
|
BIN
scripts/PNG_To_PDF/img.png
Normal file
BIN
scripts/PNG_To_PDF/img.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 19 KiB |
5
scripts/PNG_To_PDF/png-to-pdf.py
Normal file
5
scripts/PNG_To_PDF/png-to-pdf.py
Normal file
|
@ -0,0 +1,5 @@
|
|||
from PIL import Image
|
||||
|
||||
image1 = Image.open(r'png-to-pdf.png')
|
||||
impdf = image1.convert('RGB')
|
||||
impdf.save(r'png-to-pdf.pdf') # noqa
|
Loading…
Reference in New Issue
Block a user