Refactoring and option enhancements.
Change Log
Closed issues:
- Refactoring:
- New features:
- Option enhancements:
- Misc.:
Fixed bugs:
- Fix the bug with the generation expression #28
- Font descent is not taken into account when obtaining a bounding box of text #39
Features
- a generation of memes (in PNG format);
- a support of plain and graphic backgrounds;
- a specification of a text rectangle;
- a support of horizontal and vertical text alignments;
- a read of memes texts from a file (each text is separated from another by a double newline);
- a support single-line and multiline memes texts;
- a protection against duplicate memes texts (it's optional);
- a support of a watermark (it's optional);
- meme settings:
- background:
- color;
- width;
- height;
- image:
- it supports the same formats as Pillow library;
- it'll be resized to the specified size (it's optional);
- resizing filter;
- text:
- font:
- it supports only TrueType fonts;
- it's optional (if none, the Pillow library's default font is used);
- size;
- color;
- rectangle:
- left;
- rigth (if the value is negative, the image width is added to it);
- top;
- bottom (if the value is negative, the image height is added to it);
- horizontal alignment;
- vertical alignment;
- font:
- watermark:
- font (it always uses the text font);
- text;
- size;
- color.
- background:

