fotolab 0.16.4__py2.py3-none-any.whl → 0.16.6__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- fotolab/__init__.py +1 -1
- fotolab/cli.py +1 -0
- fotolab/watermark.py +2 -3
- {fotolab-0.16.4.dist-info → fotolab-0.16.6.dist-info}/METADATA +6 -3
- {fotolab-0.16.4.dist-info → fotolab-0.16.6.dist-info}/RECORD +8 -8
- {fotolab-0.16.4.dist-info → fotolab-0.16.6.dist-info}/LICENSE.md +0 -0
- {fotolab-0.16.4.dist-info → fotolab-0.16.6.dist-info}/WHEEL +0 -0
- {fotolab-0.16.4.dist-info → fotolab-0.16.6.dist-info}/entry_points.txt +0 -0
fotolab/__init__.py
CHANGED
fotolab/cli.py
CHANGED
@@ -68,6 +68,7 @@ def setup_logging(args: argparse.Namespace) -> None:
|
|
68
68
|
def build_parser() -> argparse.ArgumentParser:
|
69
69
|
"""Build the CLI parser."""
|
70
70
|
parser = argparse.ArgumentParser(
|
71
|
+
prog="fotolab",
|
71
72
|
description=__doc__,
|
72
73
|
formatter_class=lambda prog: argparse.RawTextHelpFormatter(
|
73
74
|
prog, max_help_position=20
|
fotolab/watermark.py
CHANGED
@@ -144,9 +144,8 @@ def run(args: argparse.Namespace) -> None:
|
|
144
144
|
|
145
145
|
draw = ImageDraw.Draw(watermarked_image)
|
146
146
|
|
147
|
-
font = ImageFont.
|
148
|
-
|
149
|
-
)
|
147
|
+
font = ImageFont.load_default(calc_font_size(original_image, args))
|
148
|
+
log.debug("default font: %s", " ".join(font.getname()))
|
150
149
|
|
151
150
|
(left, top, right, bottom) = draw.textbbox(
|
152
151
|
xy=(0, 0), text=args.text, font=font
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: fotolab
|
3
|
-
Version: 0.16.
|
3
|
+
Version: 0.16.6
|
4
4
|
Summary: A console program that manipulate images.
|
5
5
|
Keywords: photography,photo
|
6
6
|
Author-email: Kian-Meng Ang <kianmeng@cpan.org>
|
@@ -56,10 +56,11 @@ python -m pip install -e git+https://github.com/kianmeng/fotolab.git
|
|
56
56
|
fotolab -h
|
57
57
|
```
|
58
58
|
|
59
|
+
<!--help !-->
|
60
|
+
|
59
61
|
```console
|
60
62
|
usage: fotolab [-h] [-o] [-op] [-od OUTPUT_DIR] [-q] [-v] [-d] [-V]
|
61
|
-
{animate,auto,border,contrast,info,resize,rotate,montage,sharpen,watermark,env}
|
62
|
-
...
|
63
|
+
{animate,auto,border,contrast,info,resize,rotate,montage,sharpen,watermark,env} ...
|
63
64
|
|
64
65
|
A console program to manipulate photos.
|
65
66
|
|
@@ -94,6 +95,8 @@ optional arguments:
|
|
94
95
|
-V, --version show program's version number and exit
|
95
96
|
```
|
96
97
|
|
98
|
+
<!--help !-->
|
99
|
+
|
97
100
|
### fotolab animate
|
98
101
|
|
99
102
|
```console
|
@@ -1,9 +1,9 @@
|
|
1
|
-
fotolab/__init__.py,sha256=
|
1
|
+
fotolab/__init__.py,sha256=HVAgl8DIa7y3Ylk1hG5hP6sNFDVE7kgWPNhrH1vdZC8,2061
|
2
2
|
fotolab/__main__.py,sha256=aboOURPs_snOXTEWYR0q8oq1UTY9e-NxCd1j33V0wHI,833
|
3
3
|
fotolab/animate.py,sha256=ejimhTozo9DN7BbqqcV4x8zLnanZRKq1pxBBFeOdr6Q,2967
|
4
4
|
fotolab/auto.py,sha256=1Toxe8pA_tq15g1-imMFuHf1L94Ac7EthPTu7E8SAzE,2217
|
5
5
|
fotolab/border.py,sha256=5ch2d7LVPhB2OFuuXSW5ci6Cn967CPDQu0qSfaO7uMg,3591
|
6
|
-
fotolab/cli.py,sha256=
|
6
|
+
fotolab/cli.py,sha256=XENJqvvMxOTHVYfch8gZJhkzGxhex0LUAe75ISNNWPo,5032
|
7
7
|
fotolab/contrast.py,sha256=l7Bs5p8W8ypN9Cg3fFHnU-A20UwMKtjTiPk6D0PRwpM,2095
|
8
8
|
fotolab/env.py,sha256=NTTvfISWBBfIw5opWrUfg0BtkaAtdUtcISBAJC2gVUk,1449
|
9
9
|
fotolab/info.py,sha256=DawXTQJiQDBwy0Ml5Ysk8MvKga3ikp_aIw73AR3LdZo,1687
|
@@ -11,9 +11,9 @@ fotolab/montage.py,sha256=lUVY-zDSH7mwH-s34_XefdNp7CoDJHkwpbTUGiyJGgs,2037
|
|
11
11
|
fotolab/resize.py,sha256=cvPfh4wUfydM23Do7VnP6Bx2EqMHKfYFYrpiNhyWzCU,3259
|
12
12
|
fotolab/rotate.py,sha256=l_vQgf0IcI8AR1TSVsk4PrMZtJ3j_wpU77rKiGJ-KTA,1715
|
13
13
|
fotolab/sharpen.py,sha256=wUPtJdtB6mCRmcHrA0CoEVO0O0ROBJWhejTvUeL67QU,2655
|
14
|
-
fotolab/watermark.py,sha256=
|
15
|
-
fotolab-0.16.
|
16
|
-
fotolab-0.16.
|
17
|
-
fotolab-0.16.
|
18
|
-
fotolab-0.16.
|
19
|
-
fotolab-0.16.
|
14
|
+
fotolab/watermark.py,sha256=JnCIB--WZ2COG1BNrFY14GaWznz7BqBlwOVz4uW8H3Q,6546
|
15
|
+
fotolab-0.16.6.dist-info/entry_points.txt,sha256=mvw7AY_yZkIyjAxPtHNed9X99NZeLnMxEeAfEJUbrCM,44
|
16
|
+
fotolab-0.16.6.dist-info/LICENSE.md,sha256=tGtFDwxWTjuR9syrJoSv1Hiffd2u8Tu8cYClfrXS_YU,31956
|
17
|
+
fotolab-0.16.6.dist-info/WHEEL,sha256=Sgu64hAMa6g5FdzHxXv9Xdse9yxpGGMeagVtPMWpJQY,99
|
18
|
+
fotolab-0.16.6.dist-info/METADATA,sha256=a12ydd8UUij__v-KMITspcwKWzVmnHFERbKtjV1KMbE,10168
|
19
|
+
fotolab-0.16.6.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|