Skip to content

raihan-faza/webpy-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

webpy-converter

A Python program to convert WebP images to PNG format. This program supports conversion from both local file paths and URLs.

Features

  • Convert a WebP image from a local file path to PNG.
  • Download a WebP image from a URL and convert it to PNG.

Prerequisites

Ensure you have the requirements installed:

pip install -r requirements.txt  

Usage

Run the program using the command line.

Local File Conversion

python conv.py -f image_file_path desired_png_file_path  

Example:

python conv.py -f /home/lahh/lahh.webp /home/lahh/lahh.png  

URL Conversion

python conv.py -u image_url desired_png_file_path  

Example:

python conv.py -u https://lahh.com/lahh.webp /home/lahh/lahh.png  

Output

The converted PNG file will be saved to the path you provide as the second argument. If u use url-mode, the webp that being downloaded will be removed after converting

Feel free to modify as needed!

webpy-converter

About

convert webp to png. yap. yep . hehehe

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages