Skip to content

Make an automatic collage from pictures saved on you PC. Just define the size of the end result picture. It doesnt compromise in quality but the file size might get quite big. Description in German !

Notifications You must be signed in to change notification settings

lr101/PictureCollage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What it does:

This JAVA Program takes multiple images from a selects folder and creates with a selectes width and height a random collage. It works with different sized images and different ratio images, so no pre-processing is necessary. Additionally, there are two available shapes to choose from: Rectangle and Hexagon

Features:

  • Only works properly on 10+ Images but made for A LOT of high quality images
  • Perfect for posters with 100+ Images
  • Can create high resolution >100MB png collages
  • Use original Rectangle shapes or Hexagons
  • Create Rectangles with small and big images

Example results (2000x1500 rectangles): image1 (2000x300 rectangles) image2 (2000x2rows hexagon) image3 (2000x4rows hexagon) image4

How it works:

The variables:

Variable Example Description
SHAPE Rectangle The selected shape: Possible values are Rectangle or Hexagon
WIDTH 1000 The width of the final image in pixel
HEIGTH 400 The heigth in pixel for Rectangle and number of rows for Hexagon
IMAGE_PATH /home/root/images The complete directory path to your image directory

Run with maven and java 17:

Be sure to have maven and java 17 installed.

  1. Clone repo
git clone git@github.com:lr101/PictureCollage.git
  1. Compile:
mvn install
  1. Run the jar (or add the args in Intellij under Edit Configuration)
java -jar target/picturecollage-1.jar "<IMAGE_PATH>" "<SHAPE>" "<WIDTH>" "<HEIGHT>"  

Run with Docker

Be sure to have docker installed beforehand

  1. Run image from docker hub:
docker run \
  -e SHAPE="<SHAPE>" \
  -e WIDTH="<WIDTH>" \
  -e HEIGHT="<HEIGHT>" \
  -v "<IMAGE_PATH>:/images" \
  lrprojects/picture-collage:latest

About

Make an automatic collage from pictures saved on you PC. Just define the size of the end result picture. It doesnt compromise in quality but the file size might get quite big. Description in German !

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages