anufdo / webp-to-png

A simple Go command-line application that converts .webp images to .png format in a specified directory and resizes them to the provided dimensions.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WebP to PNG Converter with Resizing

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.

Features

  • Batch converts all .webp images in a specified directory.
  • Resizes images during the conversion process.
  • Command-line interface for easy use.

Prerequisites

  • Go (at least version 1.11, for module support)

Installation

  1. Clone this repository:

    git clone https://github.com/anufdo/webp-to-png.git
    cd webp-to-png-converter
  2. Install the required packages:

    go mod tidy 
  3. Build the application:

    go build converter.go

Usage

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.

License

MIT

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you'd like to change.

Acknowledgements

About

A simple Go command-line application that converts .webp images to .png format in a specified directory and resizes them to the provided dimensions.


Languages

Language:Go 100.0%