fotolab 0.18.2__tar.gz → 0.19.0__tar.gz

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.
Files changed (41) hide show
  1. {fotolab-0.18.2 → fotolab-0.19.0}/.pre-commit-config.yaml +3 -3
  2. {fotolab-0.18.2 → fotolab-0.19.0}/.python-version +1 -0
  3. {fotolab-0.18.2 → fotolab-0.19.0}/CHANGELOG.md +16 -0
  4. {fotolab-0.18.2 → fotolab-0.19.0}/CONTRIBUTING.md +1 -0
  5. {fotolab-0.18.2 → fotolab-0.19.0}/PKG-INFO +37 -42
  6. {fotolab-0.18.2 → fotolab-0.19.0}/Pipfile.lock +297 -307
  7. {fotolab-0.18.2 → fotolab-0.19.0}/README.md +36 -41
  8. {fotolab-0.18.2 → fotolab-0.19.0}/fotolab/__init__.py +1 -1
  9. {fotolab-0.18.2 → fotolab-0.19.0}/fotolab/auto.py +1 -0
  10. {fotolab-0.18.2 → fotolab-0.19.0}/fotolab/resize.py +70 -25
  11. {fotolab-0.18.2 → fotolab-0.19.0}/noxfile.py +6 -6
  12. {fotolab-0.18.2 → fotolab-0.19.0}/.coveragerc +0 -0
  13. {fotolab-0.18.2 → fotolab-0.19.0}/.gitignore +0 -0
  14. {fotolab-0.18.2 → fotolab-0.19.0}/LICENSE.md +0 -0
  15. {fotolab-0.18.2 → fotolab-0.19.0}/Pipfile +0 -0
  16. {fotolab-0.18.2 → fotolab-0.19.0}/docs/Makefile +0 -0
  17. {fotolab-0.18.2 → fotolab-0.19.0}/docs/make.bat +0 -0
  18. {fotolab-0.18.2 → fotolab-0.19.0}/docs/source/CHANGELOG.md +0 -0
  19. {fotolab-0.18.2 → fotolab-0.19.0}/docs/source/CONTRIBUTING.md +0 -0
  20. {fotolab-0.18.2 → fotolab-0.19.0}/docs/source/LICENSE.md +0 -0
  21. {fotolab-0.18.2 → fotolab-0.19.0}/docs/source/README.md +0 -0
  22. {fotolab-0.18.2 → fotolab-0.19.0}/docs/source/_static/logo.jpg +0 -0
  23. {fotolab-0.18.2 → fotolab-0.19.0}/docs/source/conf.py +0 -0
  24. {fotolab-0.18.2 → fotolab-0.19.0}/docs/source/index.rst +0 -0
  25. {fotolab-0.18.2 → fotolab-0.19.0}/fotolab/__main__.py +0 -0
  26. {fotolab-0.18.2 → fotolab-0.19.0}/fotolab/animate.py +0 -0
  27. {fotolab-0.18.2 → fotolab-0.19.0}/fotolab/border.py +0 -0
  28. {fotolab-0.18.2 → fotolab-0.19.0}/fotolab/cli.py +0 -0
  29. {fotolab-0.18.2 → fotolab-0.19.0}/fotolab/contrast.py +0 -0
  30. {fotolab-0.18.2 → fotolab-0.19.0}/fotolab/env.py +0 -0
  31. {fotolab-0.18.2 → fotolab-0.19.0}/fotolab/info.py +0 -0
  32. {fotolab-0.18.2 → fotolab-0.19.0}/fotolab/montage.py +0 -0
  33. {fotolab-0.18.2 → fotolab-0.19.0}/fotolab/rotate.py +0 -0
  34. {fotolab-0.18.2 → fotolab-0.19.0}/fotolab/sharpen.py +0 -0
  35. {fotolab-0.18.2 → fotolab-0.19.0}/fotolab/watermark.py +0 -0
  36. {fotolab-0.18.2 → fotolab-0.19.0}/pyproject.toml +0 -0
  37. {fotolab-0.18.2 → fotolab-0.19.0}/tests/__init__.py +0 -0
  38. {fotolab-0.18.2 → fotolab-0.19.0}/tests/conftest.py +0 -0
  39. {fotolab-0.18.2 → fotolab-0.19.0}/tests/test_env.py +0 -0
  40. {fotolab-0.18.2 → fotolab-0.19.0}/tests/test_help_flag.py +0 -0
  41. {fotolab-0.18.2 → fotolab-0.19.0}/tests/test_quiet_flag.py +0 -0
@@ -15,7 +15,7 @@ repos:
15
15
  - id: trailing-whitespace
16
16
 
17
17
  - repo: https://github.com/abravalheri/validate-pyproject
18
- rev: v0.20.2
18
+ rev: v0.22
19
19
  hooks:
20
20
  - id: validate-pyproject
21
21
  name: validate-pyproject
@@ -58,7 +58,7 @@ repos:
58
58
  - --target-version=py312
59
59
 
60
60
  - repo: https://github.com/asottile/blacken-docs
61
- rev: 1.19.0
61
+ rev: 1.19.1
62
62
  hooks:
63
63
  - id: blacken-docs
64
64
  additional_dependencies:
@@ -107,7 +107,7 @@ repos:
107
107
  - --disable=R0801,W0212
108
108
 
109
109
  - repo: https://github.com/pre-commit/mirrors-mypy
110
- rev: v1.11.2
110
+ rev: v1.13.0
111
111
  hooks:
112
112
  - id: mypy
113
113
  exclude: docs/
@@ -3,3 +3,4 @@
3
3
  3.10.15
4
4
  3.11.10
5
5
  3.12.7
6
+ 3.13.0
@@ -7,6 +7,22 @@ and this project adheres to [0-based versioning](https://0ver.org/).
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## v0.19.0 (2024-11-03)
11
+
12
+ - Add `-c` or `--canvas` flag to paste an image onto larger canvas
13
+ - Bump deps
14
+ - Require both length and height when `--canvas` flag is toggled
15
+
16
+ ## v0.18.4 (2024-10-27)
17
+
18
+ - Bump deps and `pre-commit` hooks
19
+ - Switch Python version to 3.13.0 to all `nox` tasks
20
+
21
+ ## v0.18.3 (2024-10-20)
22
+
23
+ - Bump deps and `pre-commit` hooks
24
+ - Support Python 3.13.0 in `pyenv` and `nox`
25
+
10
26
  ## v0.18.2 (2024-10-13)
11
27
 
12
28
  - Bump deps and `pre-commit` hooks
@@ -56,6 +56,7 @@ nox -l
56
56
  * test-3.10 -> Run test.
57
57
  * test-3.11 -> Run test.
58
58
  * test-3.12 -> Run test.
59
+ * test-3.13 -> Run test.
59
60
  * cov -> Run test coverage.
60
61
  * doc -> Build doc with sphinx.
61
62
  * readme -> Update console help menu to readme.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: fotolab
3
- Version: 0.18.2
3
+ Version: 0.19.0
4
4
  Summary: A console program that manipulate images.
5
5
  Keywords: photography,photo
6
6
  Author-email: Kian-Meng Ang <kianmeng@cpan.org>
@@ -60,14 +60,13 @@ fotolab -h
60
60
 
61
61
  ```console
62
62
  usage: fotolab [-h] [-o] [-op] [-od OUTPUT_DIR] [-q] [-v] [-d] [-V]
63
- {animate,auto,border,contrast,info,resize,rotate,montage,sharpen,watermark,env}
64
- ...
63
+ {animate,auto,border,contrast,info,resize,rotate,montage,sharpen,watermark,env} ...
65
64
 
66
65
  A console program to manipulate photos.
67
66
 
68
- website: https://github.com/kianmeng/fotolab
69
- changelog: https://github.com/kianmeng/fotolab/blob/master/CHANGELOG.md
70
- issues: https://github.com/kianmeng/fotolab/issues
67
+ website: https://github.com/kianmeng/fotolab
68
+ changelog: https://github.com/kianmeng/fotolab/blob/master/CHANGELOG.md
69
+ issues: https://github.com/kianmeng/fotolab/issues
71
70
 
72
71
  positional arguments:
73
72
  {animate,auto,border,contrast,info,resize,rotate,montage,sharpen,watermark,env}
@@ -88,7 +87,7 @@ options:
88
87
  -h, --help show this help message and exit
89
88
  -o, --overwrite overwrite existing image
90
89
  -op, --open open the image using default program (default: 'False')
91
- -od OUTPUT_DIR, --output-dir OUTPUT_DIR
90
+ -od, --output-dir OUTPUT_DIR
92
91
  set default output folder (default: 'output')
93
92
  -q, --quiet suppress all logging
94
93
  -v, --verbose show verbosity of debugging log, use -vv, -vvv for more details
@@ -115,11 +114,10 @@ positional arguments:
115
114
 
116
115
  options:
117
116
  -h, --help show this help message and exit
118
- -f FORMAT, --format FORMAT
119
- set the image format (default: 'gif')
120
- -d DURATION, --duration DURATION
117
+ -f, --format FORMAT set the image format (default: 'gif')
118
+ -d, --duration DURATION
121
119
  set the duration in milliseconds (default: '2500')
122
- -l LOOP, --loop LOOP set the loop cycle (default: '0')
120
+ -l, --loop LOOP set the loop cycle (default: '0')
123
121
  ```
124
122
 
125
123
  <!--help-animate !-->
@@ -162,17 +160,15 @@ positional arguments:
162
160
 
163
161
  options:
164
162
  -h, --help show this help message and exit
165
- -c COLOR, --color COLOR
166
- set the color of border (default: 'black')
167
- -w WIDTH, --width WIDTH
168
- set the width of border (default: '10')
169
- -wt WIDTH, --width-top WIDTH
163
+ -c, --color COLOR set the color of border (default: 'black')
164
+ -w, --width WIDTH set the width of border (default: '10')
165
+ -wt, --width-top WIDTH
170
166
  set the width of top border (default: '0')
171
- -wr WIDTH, --width-right WIDTH
167
+ -wr, --width-right WIDTH
172
168
  set the width of right border (default: '0')
173
- -wb WIDTH, --width-bottom WIDTH
169
+ -wb, --width-bottom WIDTH
174
170
  set the width of bottom border (default: '0')
175
- -wl WIDTH, --width-left WIDTH
171
+ -wl, --width-left WIDTH
176
172
  set the width of left border (default: '0')
177
173
  ```
178
174
 
@@ -190,13 +186,12 @@ fotolab contrast -h
190
186
  usage: fotolab contrast [-h] [-c CUTOFF] IMAGE_FILENAMES [IMAGE_FILENAMES ...]
191
187
 
192
188
  positional arguments:
193
- IMAGE_FILENAMES set the image filename
189
+ IMAGE_FILENAMES set the image filename
194
190
 
195
191
  options:
196
- -h, --help show this help message and exit
197
- -c CUTOFF, --cutoff CUTOFF
198
- set the percentage of lightest or darkest pixels to
199
- discard from histogram (default: '1')
192
+ -h, --help show this help message and exit
193
+ -c, --cutoff CUTOFF set the percentage of lightest or darkest pixels to
194
+ discard from histogram (default: '1')
200
195
  ```
201
196
 
202
197
  <!--help-contrast !-->
@@ -271,18 +266,17 @@ fotolab resize -h
271
266
  <!--help-resize !-->
272
267
 
273
268
  ```console
274
- usage: fotolab resize [-h] [-wh WIDTH | -ht HEIGHT]
269
+ usage: fotolab resize [-h] [-c] [-W WIDTH | -H HEIGHT]
275
270
  IMAGE_FILENAMES [IMAGE_FILENAMES ...]
276
271
 
277
272
  positional arguments:
278
- IMAGE_FILENAMES set the image filename
273
+ IMAGE_FILENAMES set the image filename
279
274
 
280
275
  options:
281
- -h, --help show this help message and exit
282
- -wh WIDTH, --width WIDTH
283
- set the width of the image (default: '600')
284
- -ht HEIGHT, --height HEIGHT
285
- set the height of the image (default: '277')
276
+ -h, --help show this help message and exit
277
+ -c, --canvas paste image onto a larger canvas
278
+ -W, --width WIDTH set the width of the image (default: '600')
279
+ -H, --height HEIGHT set the height of the image (default: '277')
286
280
  ```
287
281
 
288
282
  <!--help-resize !-->
@@ -304,12 +298,11 @@ positional arguments:
304
298
 
305
299
  options:
306
300
  -h, --help show this help message and exit
307
- -r RADIUS, --radius RADIUS
308
- set the radius or size of edges (default: '1')
309
- -p PERCENT, --percent PERCENT
301
+ -r, --radius RADIUS set the radius or size of edges (default: '1')
302
+ -p, --percent PERCENT
310
303
  set the amount of overall strength of sharpening
311
304
  effect (default: '100')
312
- -t THRESHOLD, --threshold THRESHOLD
305
+ -t, --threshold THRESHOLD
313
306
  set the minimum brightness changed to be sharpened
314
307
  (default: '3')
315
308
  ```
@@ -329,6 +322,7 @@ usage: fotolab watermark [-h] [-t WATERMARK_TEXT]
329
322
  [-p {top-left,top-right,bottom-left,bottom-right}]
330
323
  [-pd PADDING] [-fs FONT_SIZE] [-fc FONT_COLOR]
331
324
  [-ow OUTLINE_WIDTH] [-oc OUTLINE_COLOR] [--camera]
325
+ [-l]
332
326
  IMAGE_FILENAMES [IMAGE_FILENAMES ...]
333
327
 
334
328
  positional arguments:
@@ -336,26 +330,27 @@ positional arguments:
336
330
 
337
331
  options:
338
332
  -h, --help show this help message and exit
339
- -t WATERMARK_TEXT, --text WATERMARK_TEXT
333
+ -t, --text WATERMARK_TEXT
340
334
  set the watermark text (default: 'kianmeng.org')
341
- -p {top-left,top-right,bottom-left,bottom-right}, --position {top-left,top-right,bottom-left,bottom-right}
335
+ -p, --position {top-left,top-right,bottom-left,bottom-right}
342
336
  set position of the watermark text (default: 'bottom-
343
337
  left')
344
- -pd PADDING, --padding PADDING
338
+ -pd, --padding PADDING
345
339
  set the padding of the watermark text relative to the
346
340
  image (default: '15')
347
- -fs FONT_SIZE, --font-size FONT_SIZE
341
+ -fs, --font-size FONT_SIZE
348
342
  set the font size of watermark text (default: '12')
349
- -fc FONT_COLOR, --font-color FONT_COLOR
343
+ -fc, --font-color FONT_COLOR
350
344
  set the font color of watermark text (default:
351
345
  'white')
352
- -ow OUTLINE_WIDTH, --outline-width OUTLINE_WIDTH
346
+ -ow, --outline-width OUTLINE_WIDTH
353
347
  set the outline width of the watermark text (default:
354
348
  '2')
355
- -oc OUTLINE_COLOR, --outline-color OUTLINE_COLOR
349
+ -oc, --outline-color OUTLINE_COLOR
356
350
  set the outline color of the watermark text (default:
357
351
  'black')
358
352
  --camera use camera metadata as watermark
353
+ -l, --lowercase lowercase the watermark text
359
354
  ```
360
355
 
361
356
  <!--help-watermark !-->