Merge pull request #87 from SiddheshKukade/master

Feature Request : Img to Png coverter in python
This commit is contained in:
Advaita Saha 2022-10-03 16:49:55 +05:30 committed by GitHub
commit dc1b961478
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,12 @@
# JPG to PNG convereter in pyton
This is a simple script that lets you convert JPG to PNG.
## Usage
* Clone the repo
* download the requirements
* Install [wkhtmltopdf](https://wkhtmltopdf.org/downloads.html) as per your operating system
* run `python script.py`
## Details
- make sure to provide the path of the `image` and also for the conveted png image accordingly in order to make the program work correctly.

View File

@ -0,0 +1,4 @@
from PIL import Image
# Make sure to add the paths of Images
im1 = Image.open(r'path where the JPG is stored\file name.jpg')
im1.save(r'path where the PNG will be stored\new file name.png')