Skip to content

Combine several picture files into one. Written in Python.

Notifications You must be signed in to change notification settings

porter-liu/picwall

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

picwall

Combine several picture files into one. Written in Python.

Overview

Let's say you have 6 pictures, and you want to put them into one new dark picture in 3 columns. The maximum size of every picture element will be 512x384, and there is 20 pixels of padding surround each of them. Every picture has a light gray title, from Monday to Saturday.

from

Use following command-line to generate exactly what you want:

python picwall.py s=512x384 p=20 c=3 b=50,50,50 t=200,200,200 f=TempoFontItalic.ttf o=out.png 01.jpg Monday 02.jpg Tuesday 03.jpg Wednesday 04.jpg Thursday 05.jpg Friday 06.jpg Saturday

to

Syntax

picwall.py [s=WIDTHxHEIGHT] [p=PADDING] [c=COLUMNS] [t=TEXT_COLOR] [b=BACKGROUND_COLOR] [f=FONT_FILE] o=OUTPUT_FILE INPUT_FILE1 [INPUT_TITLE1] ...
s optional, the default value is 1024x768. The maximum size of each picture element. The format is "WIDTHxHEIGHT", for example, 100x100. Each picture will be zoomed into the box as their original ratio.
p optional, the default value is 50. The padding between each picture element.
c optional, the default value is 2. The column number of the pictures in the output file.
t optional, the default value is 255,255,255 (white). The text color if any. The format is "R,G,B", decimal number, for example, 255,0,0 (red).
b optional, the default value is 0,0,0 (black). The background color. The format is the same with t.
f optional, no default value. The filename of Truetype font. It's required if there's any titles.
o required The filename of the output file.

Requirements

You need Python (http://www.python.org/) 2.x to run this tool script.

picwall requires Pillow to manipulate various format pictures. For more information, please refer to https://github.com/python-pillow/Pillow.

License

picwall is available under the MIT license.

About

Combine several picture files into one. Written in Python.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published