Skip to content

MBrunoS/MergeaPic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MergeaPic

Go Report Card

This is an application that merges a given overlay image with multiple photos. The output are new images created from each photo merged with the overlay image.

Live demo

You can try the application here.

Local usage

You can also run the application locally. To do so, follow the instructions below:

Installation

To run this program, you need to have Go and Node.js installed in your machine. Then, clone the repository and navigate to its directory:

git clone https://github.com/mbrunos/mergeapic.git
cd mergeapic

# Install the frontend dependencies
cd frontend && npm install && cd ..

# Install the backend dependencies
cd backend && go mod download && cd ..

Running the application

To start the backend run the following command in your terminal:

cd backend
go run main.go

To start the frontend run the following command in your terminal:

cd frontend
npm run dev

How it works

The application is composed of a frontend and a backend. The frontend is a React.js application that allows the user to upload the overlay image and the photos to be merged. The backend is a Go application that receives the files and merges them.

The program uses the imaging library to resize and crop the photos accordingly to the overlay image size. Then, these images are merged using the image/draw package.

License

This project is licensed under the MIT license.

Author

Maurício Bruno