Technologies Used :-
Frontend : Javascript and littlebit of Bootstrap
Backend: Java-Spring Boot
Docker to package everything
Image Splitting is done at backend in java by looping through all pixels using ImageIO library which comes with JDK and has support for plugins.
Image Merging is done at frontend using by looping through all pixels using canvas html element.
Please go to http://ec2-13-126-128-14.ap-south-1.compute.amazonaws.com.
Dependencies: docker & docker-compose
No need to execute build, it is optional.
To run execute sudo ./run.sh
and Go to http://localhost or http://127.0.0.1.
To see result from api use curl -X POST "http://localhost/server/api/splitRGB" -H "accept: */*" -H "Content-Type: multipart/form-data" -F "image=@test.jpeg;type=image/jpeg" | json_pp
test.jpeg is provided for testing.
Dependencies: JDK should be set up in environment. (steps)
To build execute ./build.sh