This CLI application is written in Go. It's designed to batch convert .webp
images to .png
format and simultaneously resize them based on user-specified dimensions.
- Batch converts all
.webp
images in a specified directory. - Resizes images during the conversion process.
- Command-line interface for easy use.
- Go (at least version 1.11, for module support)
-
Clone this repository:
git clone https://github.com/anufdo/webp-to-png.git cd webp-to-png-converter
-
Install the required packages:
go mod tidy
-
Build the application:
go build converter.go
To convert .webp images in a directory and resize them:
./converter /path/to/directory WIDTHxHEIGHT
Replace /path/to/directory with the directory containing your .webp images, and WIDTHxHEIGHT with the desired dimensions, e.g., 32x32.
MIT
Pull requests are welcome. For major changes, please open an issue first to discuss what you'd like to change.
- webp by chai2010 for WebP decoding.
- resize by nfnt for image resizing.