Skip to content

This program makes a grid of heterogeneous images with flexibility and labels the image if required.

Notifications You must be signed in to change notification settings

Rachquazar/Grid_Maker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Grid_Maker

This is a python program which takes hetrogeneous images annd curates a grid of dimensions chosen by the user. You can change the resolution,aspect ratio of a single image in the grid. If needed, you can add text in the images with a font of your choice. It can be used to make a single or multiple labelled grids to be included in research paper and documentations.

System Requirements

Python >= 3.5

Preferable - Create a virtual environment to work on so that the installed programs don't meddle with past or future versions. I prefer virtualenv to do this.

Install Dependancies

pip install -r requirements.txt

Steps to run the program

  • Put all the images in a folder

  • Clone the repository and navigate to the respective folder

  • Run the following command on terminal - pip install -r requirements.txt

  • If label needs to be added to the images, download the .tff file of your favorite format.

  • Run the program with the respective arguments - python make_grid.py -image_folder /home/rachna/images -gridname /home/rachna/grid -keeplabel true

  • Following are the arguments you can set. -image_folder,-resolution,-aspect_ratio,-grid_dim,-keeplabel,-fontpath,-imageformat, -gridname, -fontsize

  • tff file of Times New Roman has been given in the repo as an example

Here is a result with default settings

alt text

About

This program makes a grid of heterogeneous images with flexibility and labels the image if required.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages