This project is a simple Go module that mirrors an image horizontally or vertically. The program reads an image file, processes it, and outputs the result as another image file.
These instructions will help you set up the project on your local machine for development and testing purposes.
- Go (version 1.22+)
-
Clone the repository:
git clone https://github.com/guilhermemcardoso/go-image-mirroring cd go-image-mirroring
-
Build the project:
go build -o gomirroring
To use the Image Mirroring application, run the following command:
./gomirroring -input <yourimage.png> -output <youroutput.png> -effect <horizontal | vertical>
This command will generate an image file with the same name and extension as the output inserted param.
Suppose you have an image file named image.png
. To mirror it vertically, use:
./gomirroring -input image.png -output output.png -effect vertical
The program will create a file named output.png
containing the mirrored image.
If you have suggestions for improving this project, feel free to submit a pull request or open an issue.