fotolab 0.14.0__tar.gz → 0.16.3__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.
- {fotolab-0.14.0 → fotolab-0.16.3}/.pre-commit-config.yaml +2 -2
- fotolab-0.16.3/.python-version +5 -0
- {fotolab-0.14.0 → fotolab-0.16.3}/CHANGELOG.md +39 -86
- {fotolab-0.14.0 → fotolab-0.16.3}/CONTRIBUTING.md +12 -26
- {fotolab-0.14.0 → fotolab-0.16.3}/PKG-INFO +23 -8
- {fotolab-0.14.0 → fotolab-0.16.3}/Pipfile +4 -5
- {fotolab-0.14.0 → fotolab-0.16.3}/Pipfile.lock +468 -541
- {fotolab-0.14.0 → fotolab-0.16.3}/README.md +22 -7
- {fotolab-0.14.0 → fotolab-0.16.3}/fotolab/__init__.py +3 -3
- {fotolab-0.14.0 → fotolab-0.16.3}/fotolab/cli.py +14 -0
- {fotolab-0.14.0 → fotolab-0.16.3}/fotolab/resize.py +39 -5
- fotolab-0.16.3/fotolab/rotate.py +61 -0
- {fotolab-0.14.0 → fotolab-0.16.3}/fotolab/sharpen.py +3 -3
- {fotolab-0.14.0 → fotolab-0.16.3}/fotolab/watermark.py +46 -7
- fotolab-0.16.3/noxfile.py +54 -0
- fotolab-0.14.0/.python-version +0 -5
- fotolab-0.14.0/tox.ini +0 -25
- {fotolab-0.14.0 → fotolab-0.16.3}/.coveragerc +0 -0
- {fotolab-0.14.0 → fotolab-0.16.3}/.gitignore +0 -0
- {fotolab-0.14.0 → fotolab-0.16.3}/LICENSE.md +0 -0
- {fotolab-0.14.0 → fotolab-0.16.3}/docs/Makefile +0 -0
- {fotolab-0.14.0 → fotolab-0.16.3}/docs/make.bat +0 -0
- {fotolab-0.14.0 → fotolab-0.16.3}/docs/source/CHANGELOG.md +0 -0
- {fotolab-0.14.0 → fotolab-0.16.3}/docs/source/CONTRIBUTING.md +0 -0
- {fotolab-0.14.0 → fotolab-0.16.3}/docs/source/LICENSE.md +0 -0
- {fotolab-0.14.0 → fotolab-0.16.3}/docs/source/README.md +0 -0
- {fotolab-0.14.0 → fotolab-0.16.3}/docs/source/_static/logo.jpg +0 -0
- {fotolab-0.14.0 → fotolab-0.16.3}/docs/source/conf.py +0 -0
- {fotolab-0.14.0 → fotolab-0.16.3}/docs/source/index.rst +0 -0
- {fotolab-0.14.0 → fotolab-0.16.3}/fotolab/__main__.py +0 -0
- {fotolab-0.14.0 → fotolab-0.16.3}/fotolab/animate.py +0 -0
- {fotolab-0.14.0 → fotolab-0.16.3}/fotolab/auto.py +0 -0
- {fotolab-0.14.0 → fotolab-0.16.3}/fotolab/border.py +0 -0
- {fotolab-0.14.0 → fotolab-0.16.3}/fotolab/contrast.py +0 -0
- {fotolab-0.14.0 → fotolab-0.16.3}/fotolab/env.py +0 -0
- {fotolab-0.14.0 → fotolab-0.16.3}/fotolab/info.py +0 -0
- {fotolab-0.14.0 → fotolab-0.16.3}/fotolab/montage.py +0 -0
- {fotolab-0.14.0 → fotolab-0.16.3}/pyproject.toml +0 -0
- {fotolab-0.14.0 → fotolab-0.16.3}/tests/__init__.py +0 -0
- {fotolab-0.14.0 → fotolab-0.16.3}/tests/conftest.py +0 -0
- {fotolab-0.14.0 → fotolab-0.16.3}/tests/test_env.py +0 -0
- {fotolab-0.14.0 → fotolab-0.16.3}/tests/test_help_flag.py +0 -0
- {fotolab-0.14.0 → fotolab-0.16.3}/tests/test_quiet_flag.py +0 -0
@@ -15,13 +15,13 @@ repos:
|
|
15
15
|
- id: trailing-whitespace
|
16
16
|
|
17
17
|
- repo: https://github.com/abravalheri/validate-pyproject
|
18
|
-
rev: v0.
|
18
|
+
rev: v0.18
|
19
19
|
hooks:
|
20
20
|
- id: validate-pyproject
|
21
21
|
name: validate-pyproject
|
22
22
|
|
23
23
|
- repo: https://github.com/codespell-project/codespell
|
24
|
-
rev: v2.
|
24
|
+
rev: v2.3.0
|
25
25
|
hooks:
|
26
26
|
- id: codespell
|
27
27
|
args:
|
@@ -7,19 +7,46 @@ and this project adheres to [0-based versioning](https://0ver.org/).
|
|
7
7
|
|
8
8
|
## [Unreleased]
|
9
9
|
|
10
|
-
## v0.
|
10
|
+
## v0.16.3 (2024-06-02)
|
11
11
|
|
12
|
-
|
12
|
+
- Bump deps
|
13
|
+
- Fix incorrect `nox` session description
|
14
|
+
- Remove unused `doc` section from `Pipfile`
|
13
15
|
|
14
|
-
|
16
|
+
## v0.16.2 (2024-05-26)
|
17
|
+
|
18
|
+
- Add `cov` (coverage) session to `nox`
|
19
|
+
- Bump deps and `pre-commit` hooks
|
20
|
+
- Switch to `nox` from `tox`
|
21
|
+
|
22
|
+
## v0.16.1 (2024-05-19)
|
23
|
+
|
24
|
+
- Add `doc` session to `nox`
|
25
|
+
- Bump deps
|
26
|
+
- Move doc generation related deps to `dev` group
|
27
|
+
- Remove subheaders from changelog
|
28
|
+
|
29
|
+
## v0.16.0 (2024-05-12)
|
15
30
|
|
16
|
-
|
31
|
+
- Add `rotate` subcommand to rotate an image
|
32
|
+
- Add initial `lint` session for `nox`
|
33
|
+
- Bump deps, `pre-commit` hooks, and Python versions in `pyenv`
|
17
34
|
|
35
|
+
## v0.15.0 (2024-05-05)
|
36
|
+
|
37
|
+
- Add `-v` or `--verbose` flag to toggle the debug logs of PIL
|
18
38
|
- Bump deps and `pre-commit` hooks
|
39
|
+
- Remove empty lines in help message
|
40
|
+
- Resize image to the right aspect ratio based on image's dimension
|
41
|
+
- Resize watermark font based on the image's dimension
|
42
|
+
- Show absolute image path in logs
|
19
43
|
|
20
|
-
## v0.
|
44
|
+
## v0.14.0 (2024-04-28)
|
21
45
|
|
22
|
-
|
46
|
+
- Add `animate` subcommand to create animated `gif` image
|
47
|
+
- Bump deps and `pre-commit` hooks
|
48
|
+
|
49
|
+
## v0.13.0 (2024-04-21)
|
23
50
|
|
24
51
|
- Bump deps
|
25
52
|
- Support processing multiple images at once
|
@@ -27,170 +54,96 @@ and this project adheres to [0-based versioning](https://0ver.org/).
|
|
27
54
|
|
28
55
|
## v0.12.0 (2024-04-14)
|
29
56
|
|
30
|
-
### Added
|
31
|
-
|
32
57
|
- Add `-pd` or `--padding` option to set the padding of watermark text block
|
33
|
-
|
34
|
-
### Changed
|
35
|
-
|
36
58
|
- Bump deps, `pre-commit` hooks, and Python versions for `pyenv`
|
37
|
-
|
38
|
-
### Fixed
|
39
|
-
|
40
59
|
- Fix `auto` subcommand missing `padding` field
|
41
60
|
- Fix missing closing parenthesis in help message
|
42
61
|
- Update missing subcommand help message in README
|
43
62
|
|
44
63
|
## v0.11.0 (2024-04-07)
|
45
64
|
|
46
|
-
### Added
|
47
|
-
|
48
65
|
- Add `montage` subcommand to join multiple images
|
49
|
-
|
50
|
-
### Changed
|
51
|
-
|
52
66
|
- Bump deps
|
53
67
|
- Update missing subcommand help message in README
|
54
68
|
|
55
69
|
## v0.10.0 (2024-03-31)
|
56
70
|
|
57
|
-
### Added
|
58
|
-
|
59
71
|
- Add `info` subcommand to show EXIF data from image
|
60
|
-
|
61
|
-
### Changed
|
62
|
-
|
63
72
|
- Bump deps
|
64
|
-
- Update help message in README
|
65
|
-
- Ignore `pylint` W0212 rule
|
66
|
-
|
67
|
-
### Fix
|
68
|
-
|
69
73
|
- Fix incorrect action in log when running `auto` subcommand
|
74
|
+
- Ignore `pylint` W0212 rule
|
75
|
+
- Update help message in README
|
70
76
|
- Update incorrect comment for `save_image` helper function
|
71
77
|
|
72
78
|
## v0.9.1 (2024-03-24)
|
73
79
|
|
74
|
-
|
75
|
-
|
80
|
+
- Fix newline in `sys.version` output in Python 3.8
|
76
81
|
- Implement open image using the default program
|
77
82
|
- Refactor all subcommand to use `save_image` global helper function
|
78
83
|
|
79
|
-
### Fixed
|
80
|
-
|
81
|
-
- Fix newline in `sys.version` output in Python 3.8
|
82
|
-
|
83
84
|
## v0.9.0 (2024-03-17)
|
84
85
|
|
85
|
-
### Added
|
86
|
-
|
87
86
|
- Add `-op` or `--open` flag to open the image using default program
|
88
|
-
|
89
|
-
### Changed
|
90
|
-
|
91
87
|
- Bump deps and `pre-commit` hook
|
92
88
|
|
93
89
|
## v0.8.0 (2024-03-10)
|
94
90
|
|
95
|
-
### Added
|
96
|
-
|
97
91
|
- Add `auto` subcommand to auto adjust (resize, contrast, sharpen, and watermark) of an image
|
98
92
|
- Add `contrast` subcommand to adjust contrast of an image
|
99
|
-
|
100
|
-
### Changed
|
101
|
-
|
102
93
|
- Bump `pre-commit` hook
|
103
94
|
- Log using the subcommand name instead of generic name
|
104
95
|
|
105
96
|
## v0.7.0 (2024-03-03)
|
106
97
|
|
107
|
-
### Added
|
108
|
-
|
109
98
|
- Add `sharpen` subcommand to sharpen image
|
110
|
-
- Set sharpen parameters through `-r` or `--radius` option
|
111
99
|
- Set sharpen parameters through `-p` or `--percent` option
|
100
|
+
- Set sharpen parameters through `-r` or `--radius` option
|
112
101
|
- Set sharpen parameters through `-t` or `--threshold` option
|
113
102
|
|
114
103
|
## v0.6.1 (2024-02-18)
|
115
104
|
|
116
|
-
### Added
|
117
|
-
|
118
105
|
- Allow setting of different border width through `-wt`, `-wr`, `-wb`, and `wl`
|
119
106
|
option
|
120
|
-
|
121
|
-
### Fixed
|
122
|
-
|
123
107
|
- Remove extra lines in help message in README.md
|
124
108
|
|
125
109
|
## v0.6.0 (2024-02-18)
|
126
110
|
|
127
|
-
### Added
|
128
|
-
|
129
111
|
- Add `resize` subcommand to resize image
|
130
112
|
|
131
113
|
## v0.5.0 (2024-02-11)
|
132
114
|
|
133
|
-
### Added
|
134
|
-
|
135
115
|
- Add `-od` or `--output-dir` global option to set default output directory
|
136
116
|
- Add missing types in doc
|
137
117
|
- Log when saving image
|
138
118
|
|
139
119
|
## v0.4.0 (2024-02-04)
|
140
120
|
|
141
|
-
### Added
|
142
|
-
|
143
121
|
- Add `-o` or `--overwrite` global flag to overwrite modified image
|
144
122
|
|
145
123
|
## v0.3.1 (2024-01-28)
|
146
124
|
|
147
|
-
### Added
|
148
|
-
|
149
125
|
- Add `-w` or `--width` option to `fotolab border` subcommand
|
150
126
|
- Add `-c` or `--color` option to `fotolab border` subcommand
|
151
|
-
|
152
|
-
### Fixed
|
153
|
-
|
154
127
|
- Fix border not added to image
|
155
128
|
|
156
129
|
## v0.3.0 (2024-01-21)
|
157
130
|
|
158
|
-
|
159
|
-
|
131
|
+
- Add `fotolab border` subcommand to add border for an image
|
160
132
|
- Fix incorrect subcommand wording
|
161
|
-
|
162
|
-
### Changed
|
163
|
-
|
164
133
|
- Ignore `__repr__` in code coverage
|
165
134
|
- Ignore duplicate code linting rule
|
166
|
-
|
167
|
-
### Added
|
168
|
-
|
169
|
-
- Add `fotolab border` subcommand to add border for an image
|
170
135
|
- Test `quiet` flag
|
171
136
|
|
172
137
|
## v0.2.0 (2024-01-14)
|
173
138
|
|
174
|
-
### Added
|
175
|
-
|
176
139
|
- Add `fotolab env` subcommand for debugging and bug reporting purpose
|
177
|
-
|
178
|
-
### Fixed
|
179
|
-
|
180
140
|
- Fix incorrect metavar for `--font-color`
|
181
141
|
|
182
142
|
## v0.1.1 (2024-01-07)
|
183
143
|
|
184
|
-
|
185
|
-
|
144
|
+
- Bump project and `pre-commit` hooks deps
|
186
145
|
- Generate project documentation using `sphinx`
|
187
146
|
|
188
|
-
### Changes
|
189
|
-
|
190
|
-
- Bump project and pre-commit hooks deps
|
191
|
-
|
192
147
|
## v0.1.0 (2024-01-01)
|
193
148
|
|
194
|
-
### Added
|
195
|
-
|
196
149
|
- Initial public release
|
@@ -41,38 +41,24 @@ Spawn a shell in virtual environment for your development:
|
|
41
41
|
pipenv shell
|
42
42
|
```
|
43
43
|
|
44
|
-
Show all available
|
44
|
+
Show all available `nox` sessions:
|
45
45
|
|
46
46
|
```console
|
47
|
-
|
47
|
+
nox -l
|
48
48
|
```
|
49
49
|
|
50
50
|
```console
|
51
51
|
...
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
```
|
63
|
-
|
64
|
-
For code linting, we're using `pre-commit`:
|
65
|
-
|
66
|
-
```console
|
67
|
-
pre-commit install # run once
|
68
|
-
pre-commit clean
|
69
|
-
pre-commit run --all-files
|
70
|
-
```
|
71
|
-
|
72
|
-
Or specific hook:
|
73
|
-
|
74
|
-
```console
|
75
|
-
pre-commit run pylint -a
|
52
|
+
* lint -> Runs pre-commit linter.
|
53
|
+
* test-3.8 -> Runs test.
|
54
|
+
* test-3.9 -> Runs test.
|
55
|
+
* test-3.10 -> Runs test.
|
56
|
+
* test-3.11 -> Runs test.
|
57
|
+
* test-3.12 -> Runs test.
|
58
|
+
* cov -> Runs test coverage.
|
59
|
+
* doc -> Runs test.
|
60
|
+
|
61
|
+
sessions marked with * are selected, sessions marked with - are skipped.
|
76
62
|
```
|
77
63
|
|
78
64
|
## Create a Pull Request
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: fotolab
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.16.3
|
4
4
|
Summary: A console program that manipulate images.
|
5
5
|
Keywords: photography,photo
|
6
6
|
Author-email: Kian-Meng Ang <kianmeng@cpan.org>
|
@@ -57,9 +57,8 @@ fotolab -h
|
|
57
57
|
```
|
58
58
|
|
59
59
|
```console
|
60
|
-
|
61
|
-
|
62
|
-
{animate,auto,border,contrast,info,resize,montage,sharpen,watermark,env}
|
60
|
+
usage: fotolab [-h] [-o] [-op] [-od OUTPUT_DIR] [-q] [-v] [-d] [-V]
|
61
|
+
{animate,auto,border,contrast,info,resize,rotate,montage,sharpen,watermark,env}
|
63
62
|
...
|
64
63
|
|
65
64
|
A console program to manipulate photos.
|
@@ -69,7 +68,7 @@ A console program to manipulate photos.
|
|
69
68
|
issues: https://github.com/kianmeng/fotolab/issues
|
70
69
|
|
71
70
|
positional arguments:
|
72
|
-
{animate,auto,border,contrast,info,resize,montage,sharpen,watermark,env}
|
71
|
+
{animate,auto,border,contrast,info,resize,rotate,montage,sharpen,watermark,env}
|
73
72
|
sub-command help
|
74
73
|
animate animate an image
|
75
74
|
auto auto adjust (resize, contrast, and watermark) a photo
|
@@ -77,6 +76,7 @@ positional arguments:
|
|
77
76
|
contrast contrast an image
|
78
77
|
info info an image
|
79
78
|
resize resize an image
|
79
|
+
rotate rotate an image
|
80
80
|
montage montage a list of image
|
81
81
|
sharpen sharpen an image
|
82
82
|
watermark watermark an image
|
@@ -89,6 +89,7 @@ optional arguments:
|
|
89
89
|
-od OUTPUT_DIR, --output-dir OUTPUT_DIR
|
90
90
|
set default output folder (default: 'output')
|
91
91
|
-q, --quiet suppress all logging
|
92
|
+
-v, --verbose show verbosity of debugging log, use -vv, -vvv for more details
|
92
93
|
-d, --debug show debugging log and stacktrace
|
93
94
|
-V, --version show program's version number and exit
|
94
95
|
```
|
@@ -100,7 +101,6 @@ fotolab animate -h
|
|
100
101
|
```
|
101
102
|
|
102
103
|
```console
|
103
|
-
|
104
104
|
usage: fotolab animate [-h] [-f FORMAT] [-d DURATION] [-l LOOP]
|
105
105
|
IMAGE_FILENAMES [IMAGE_FILENAMES ...]
|
106
106
|
|
@@ -197,6 +197,22 @@ optional arguments:
|
|
197
197
|
-h, --help show this help message and exit
|
198
198
|
```
|
199
199
|
|
200
|
+
### fotolab rotate
|
201
|
+
|
202
|
+
```console
|
203
|
+
fotolab rotate -h
|
204
|
+
```
|
205
|
+
|
206
|
+
```console
|
207
|
+
usage: fotolab rotate [-h] IMAGE_FILENAMES [IMAGE_FILENAMES ...]
|
208
|
+
|
209
|
+
positional arguments:
|
210
|
+
IMAGE_FILENAMES set the image filenames
|
211
|
+
|
212
|
+
optional arguments:
|
213
|
+
-h, --help show this help message and exit
|
214
|
+
```
|
215
|
+
|
200
216
|
### fotolab montage
|
201
217
|
|
202
218
|
```console
|
@@ -204,7 +220,6 @@ fotolab montage -h
|
|
204
220
|
```
|
205
221
|
|
206
222
|
```console
|
207
|
-
|
208
223
|
usage: fotolab montage [-h] IMAGE_FILENAMES [IMAGE_FILENAMES ...]
|
209
224
|
|
210
225
|
positional arguments:
|
@@ -221,7 +236,7 @@ fotolab resize -h
|
|
221
236
|
```
|
222
237
|
|
223
238
|
```console
|
224
|
-
usage: fotolab resize [-h] [-wh WIDTH
|
239
|
+
usage: fotolab resize [-h] [-wh WIDTH | -ht HEIGHT]
|
225
240
|
IMAGE_FILENAMES [IMAGE_FILENAMES ...]
|
226
241
|
|
227
242
|
positional arguments:
|
@@ -23,12 +23,11 @@ scripttest = "*"
|
|
23
23
|
tomli = "*"
|
24
24
|
tox = "<4"
|
25
25
|
tox-pyenv = "*"
|
26
|
-
|
27
|
-
[requires]
|
28
|
-
python_version = "3.8"
|
29
|
-
|
30
|
-
[doc]
|
26
|
+
nox = "*"
|
31
27
|
sphinx = "*"
|
32
28
|
myst-parser = "*"
|
33
29
|
sphinx-autodoc-typehints = "*"
|
34
30
|
sphinx-copybutton = "*"
|
31
|
+
|
32
|
+
[requires]
|
33
|
+
python_version = "3.8"
|