fotolab 0.34.1__py3-none-any.whl → 0.34.2__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 +12 -0
- fotolab/subcommands/animate.py +3 -4
- fotolab/subcommands/border.py +11 -11
- fotolab/subcommands/contrast.py +24 -24
- fotolab/subcommands/halftone.py +15 -15
- fotolab/subcommands/montage.py +17 -15
- fotolab/subcommands/resize.py +61 -62
- fotolab/subcommands/rotate.py +9 -9
- fotolab/subcommands/sharpen.py +19 -17
- fotolab/subcommands/watermark.py +14 -12
- {fotolab-0.34.1.dist-info → fotolab-0.34.2.dist-info}/METADATA +1 -1
- fotolab-0.34.2.dist-info/RECORD +22 -0
- fotolab-0.34.1.dist-info/RECORD +0 -22
- {fotolab-0.34.1.dist-info → fotolab-0.34.2.dist-info}/WHEEL +0 -0
- {fotolab-0.34.1.dist-info → fotolab-0.34.2.dist-info}/entry_points.txt +0 -0
- {fotolab-0.34.1.dist-info → fotolab-0.34.2.dist-info}/licenses/LICENSE.md +0 -0
- {fotolab-0.34.1.dist-info → fotolab-0.34.2.dist-info}/top_level.txt +0 -0
fotolab/__init__.py
CHANGED
|
@@ -22,6 +22,8 @@ import logging
|
|
|
22
22
|
import os
|
|
23
23
|
import subprocess
|
|
24
24
|
import sys
|
|
25
|
+
from contextlib import contextmanager
|
|
26
|
+
from typing import Iterator
|
|
25
27
|
|
|
26
28
|
from PIL import Image
|
|
27
29
|
|
|
@@ -98,3 +100,13 @@ def open_image(filename: Path):
|
|
|
98
100
|
|
|
99
101
|
except (OSError, FileNotFoundError) as error:
|
|
100
102
|
log.error("Error opening image: %s -> %s", filename, error)
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
@contextmanager
|
|
106
|
+
def load_image(filename: Path) -> Iterator[Image.Image]:
|
|
107
|
+
"""Load image using a context manager to ensure file handle is closed."""
|
|
108
|
+
try:
|
|
109
|
+
image = Image.open(filename)
|
|
110
|
+
yield image
|
|
111
|
+
finally:
|
|
112
|
+
image.close()
|
fotolab/subcommands/animate.py
CHANGED
|
@@ -20,9 +20,8 @@ import logging
|
|
|
20
20
|
from pathlib import Path
|
|
21
21
|
from contextlib import ExitStack
|
|
22
22
|
|
|
23
|
-
from PIL import Image
|
|
24
23
|
|
|
25
|
-
from fotolab import open_image
|
|
24
|
+
from fotolab import load_image, open_image
|
|
26
25
|
|
|
27
26
|
log = logging.getLogger(__name__)
|
|
28
27
|
|
|
@@ -164,10 +163,10 @@ def run(args: argparse.Namespace) -> None:
|
|
|
164
163
|
other_frames = []
|
|
165
164
|
|
|
166
165
|
with ExitStack() as stack:
|
|
167
|
-
main_frame = stack.enter_context(
|
|
166
|
+
main_frame = stack.enter_context(load_image(first_image_filepath))
|
|
168
167
|
|
|
169
168
|
for image_filepath in image_filepaths[1:]:
|
|
170
|
-
img = stack.enter_context(
|
|
169
|
+
img = stack.enter_context(load_image(image_filepath))
|
|
171
170
|
other_frames.append(img)
|
|
172
171
|
|
|
173
172
|
if args.output_filename:
|
fotolab/subcommands/border.py
CHANGED
|
@@ -20,9 +20,9 @@ import logging
|
|
|
20
20
|
from pathlib import Path
|
|
21
21
|
from typing import Tuple
|
|
22
22
|
|
|
23
|
-
from PIL import
|
|
23
|
+
from PIL import ImageColor, ImageOps
|
|
24
24
|
|
|
25
|
-
from fotolab import save_image
|
|
25
|
+
from fotolab import load_image, save_image
|
|
26
26
|
|
|
27
27
|
log = logging.getLogger(__name__)
|
|
28
28
|
|
|
@@ -136,15 +136,15 @@ def run(args: argparse.Namespace) -> None:
|
|
|
136
136
|
log.debug(args)
|
|
137
137
|
|
|
138
138
|
for image_filepath in [Path(f) for f in args.image_paths]:
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
139
|
+
with load_image(image_filepath) as original_image:
|
|
140
|
+
border = get_border(args)
|
|
141
|
+
bordered_image = ImageOps.expand(
|
|
142
|
+
original_image,
|
|
143
|
+
border=border,
|
|
144
|
+
fill=ImageColor.getrgb(args.color),
|
|
145
|
+
)
|
|
146
|
+
|
|
147
|
+
save_image(args, bordered_image, image_filepath, "border")
|
|
148
148
|
|
|
149
149
|
|
|
150
150
|
def get_border(
|
fotolab/subcommands/contrast.py
CHANGED
|
@@ -19,9 +19,9 @@ import argparse
|
|
|
19
19
|
import logging
|
|
20
20
|
from pathlib import Path
|
|
21
21
|
|
|
22
|
-
from PIL import
|
|
22
|
+
from PIL import ImageOps
|
|
23
23
|
|
|
24
|
-
from fotolab import save_image
|
|
24
|
+
from fotolab import load_image, save_image
|
|
25
25
|
|
|
26
26
|
log = logging.getLogger(__name__)
|
|
27
27
|
|
|
@@ -103,25 +103,25 @@ def run(args: argparse.Namespace) -> None:
|
|
|
103
103
|
log.debug(args)
|
|
104
104
|
|
|
105
105
|
for image_path_str in args.image_paths:
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
106
|
+
with load_image(Path(image_path_str)) as original_image:
|
|
107
|
+
if original_image.mode == "RGBA":
|
|
108
|
+
# Split the image into RGB and Alpha channels
|
|
109
|
+
rgb_image = original_image.convert("RGB")
|
|
110
|
+
alpha_channel = original_image.getchannel("A")
|
|
111
|
+
|
|
112
|
+
# Apply autocontrast to the RGB part
|
|
113
|
+
contrasted_rgb = ImageOps.autocontrast(
|
|
114
|
+
rgb_image, cutoff=args.cutoff
|
|
115
|
+
)
|
|
116
|
+
|
|
117
|
+
# Merge the contrasted RGB part with the original Alpha channel
|
|
118
|
+
contrasted_rgb.putalpha(alpha_channel)
|
|
119
|
+
contrast_image = contrasted_rgb
|
|
120
|
+
else:
|
|
121
|
+
# For other modes (like RGB, L, etc.), apply autocontrast
|
|
122
|
+
# directly
|
|
123
|
+
contrast_image = ImageOps.autocontrast(
|
|
124
|
+
original_image, cutoff=args.cutoff
|
|
125
|
+
)
|
|
126
|
+
|
|
127
|
+
save_image(args, contrast_image, Path(image_path_str), "contrast")
|
fotolab/subcommands/halftone.py
CHANGED
|
@@ -23,7 +23,7 @@ from typing import NamedTuple
|
|
|
23
23
|
|
|
24
24
|
from PIL import Image, ImageDraw
|
|
25
25
|
|
|
26
|
-
from fotolab import save_gif_image, save_image
|
|
26
|
+
from fotolab import load_image, save_gif_image, save_image
|
|
27
27
|
|
|
28
28
|
log = logging.getLogger(__name__)
|
|
29
29
|
|
|
@@ -113,21 +113,21 @@ def run(args: argparse.Namespace) -> None:
|
|
|
113
113
|
|
|
114
114
|
for image_path_str in args.image_paths:
|
|
115
115
|
image_filename = Path(image_path_str)
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
)
|
|
120
|
-
|
|
121
|
-
if args.before_after:
|
|
122
|
-
save_gif_image(
|
|
123
|
-
args,
|
|
124
|
-
image_filename,
|
|
125
|
-
original_image,
|
|
126
|
-
halftone_image,
|
|
127
|
-
"halftone",
|
|
116
|
+
with load_image(image_filename) as original_image:
|
|
117
|
+
halftone_image = create_halftone_image(
|
|
118
|
+
original_image, args.cells, args.grayscale
|
|
128
119
|
)
|
|
129
|
-
|
|
130
|
-
|
|
120
|
+
|
|
121
|
+
if args.before_after:
|
|
122
|
+
save_gif_image(
|
|
123
|
+
args,
|
|
124
|
+
image_filename,
|
|
125
|
+
original_image,
|
|
126
|
+
halftone_image,
|
|
127
|
+
"halftone",
|
|
128
|
+
)
|
|
129
|
+
else:
|
|
130
|
+
save_image(args, halftone_image, image_filename, "halftone")
|
|
131
131
|
|
|
132
132
|
|
|
133
133
|
def _draw_halftone_dot(
|
fotolab/subcommands/montage.py
CHANGED
|
@@ -18,10 +18,11 @@
|
|
|
18
18
|
import argparse
|
|
19
19
|
import logging
|
|
20
20
|
from pathlib import Path
|
|
21
|
+
from contextlib import ExitStack
|
|
21
22
|
|
|
22
23
|
from PIL import Image
|
|
23
24
|
|
|
24
|
-
from fotolab import save_image
|
|
25
|
+
from fotolab import load_image, save_image
|
|
25
26
|
|
|
26
27
|
log = logging.getLogger(__name__)
|
|
27
28
|
|
|
@@ -72,22 +73,23 @@ def run(args: argparse.Namespace) -> None:
|
|
|
72
73
|
"""
|
|
73
74
|
log.debug(args)
|
|
74
75
|
images = []
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
with ExitStack() as stack:
|
|
77
|
+
for image_path_str in args.image_paths:
|
|
78
|
+
image_filename = Path(image_path_str)
|
|
79
|
+
images.append(stack.enter_context(load_image(image_filename)))
|
|
78
80
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
+
if len(images) < 2:
|
|
82
|
+
raise ValueError("at least two images is required for montage")
|
|
81
83
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
+
total_width = sum(img.width for img in images)
|
|
85
|
+
total_height = max(img.height for img in images)
|
|
84
86
|
|
|
85
|
-
|
|
87
|
+
montaged_image = Image.new("RGB", (total_width, total_height))
|
|
86
88
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
x_offset = 0
|
|
90
|
+
for image in images:
|
|
91
|
+
montaged_image.paste(image, (x_offset, 0))
|
|
92
|
+
x_offset += image.width
|
|
91
93
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
+
output_image_filename = Path(args.image_paths[0])
|
|
95
|
+
save_image(args, montaged_image, output_image_filename, "montage")
|
fotolab/subcommands/resize.py
CHANGED
|
@@ -18,12 +18,11 @@
|
|
|
18
18
|
import argparse
|
|
19
19
|
import logging
|
|
20
20
|
import math
|
|
21
|
-
import sys
|
|
22
21
|
from pathlib import Path
|
|
23
22
|
|
|
24
23
|
from PIL import Image, ImageColor
|
|
25
24
|
|
|
26
|
-
from fotolab import save_image
|
|
25
|
+
from fotolab import load_image, save_image
|
|
27
26
|
|
|
28
27
|
log = logging.getLogger(__name__)
|
|
29
28
|
|
|
@@ -65,48 +64,28 @@ def build_subparser(subparsers) -> None:
|
|
|
65
64
|
),
|
|
66
65
|
)
|
|
67
66
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
group.add_argument(
|
|
92
|
-
"-W",
|
|
93
|
-
"--width",
|
|
94
|
-
dest="width",
|
|
95
|
-
help="set the width of the image (default: '%(default)s')",
|
|
96
|
-
type=int,
|
|
97
|
-
default=DEFAULT_WIDTH,
|
|
98
|
-
metavar="WIDTH",
|
|
99
|
-
)
|
|
100
|
-
|
|
101
|
-
group.add_argument(
|
|
102
|
-
"-H",
|
|
103
|
-
"--height",
|
|
104
|
-
dest="height",
|
|
105
|
-
help="set the height of the image (default: '%(default)s')",
|
|
106
|
-
type=int,
|
|
107
|
-
default=DEFAULT_HEIGHT,
|
|
108
|
-
metavar="HEIGHT",
|
|
109
|
-
)
|
|
67
|
+
# Define width and height arguments as optional with defaults.
|
|
68
|
+
# The conditional logic (required/mutually exclusive) is now handled in the
|
|
69
|
+
# run function.
|
|
70
|
+
resize_parser.add_argument(
|
|
71
|
+
"-W",
|
|
72
|
+
"--width",
|
|
73
|
+
dest="width",
|
|
74
|
+
help="set the width of the image (default: '%(default)s')",
|
|
75
|
+
type=int,
|
|
76
|
+
default=DEFAULT_WIDTH,
|
|
77
|
+
metavar="WIDTH",
|
|
78
|
+
)
|
|
79
|
+
|
|
80
|
+
resize_parser.add_argument(
|
|
81
|
+
"-H",
|
|
82
|
+
"--height",
|
|
83
|
+
dest="height",
|
|
84
|
+
help="set the height of the image (default: '%(default)s')",
|
|
85
|
+
type=int,
|
|
86
|
+
default=DEFAULT_HEIGHT,
|
|
87
|
+
metavar="HEIGHT",
|
|
88
|
+
)
|
|
110
89
|
|
|
111
90
|
resize_parser.add_argument(
|
|
112
91
|
"-op",
|
|
@@ -137,13 +116,31 @@ def run(args: argparse.Namespace) -> None:
|
|
|
137
116
|
"""
|
|
138
117
|
log.debug(args)
|
|
139
118
|
|
|
119
|
+
width_provided = args.width != DEFAULT_WIDTH
|
|
120
|
+
height_provided = args.height != DEFAULT_HEIGHT
|
|
121
|
+
|
|
122
|
+
if args.canvas:
|
|
123
|
+
# Canvas mode: Both width and height are required
|
|
124
|
+
if not (width_provided and height_provided):
|
|
125
|
+
raise SystemExit(
|
|
126
|
+
"error: argument -W/--width and -H/--height are required when "
|
|
127
|
+
"using --canvas"
|
|
128
|
+
)
|
|
129
|
+
else:
|
|
130
|
+
# Resize mode: Width and height are mutually exclusive
|
|
131
|
+
if width_provided and height_provided:
|
|
132
|
+
raise SystemExit(
|
|
133
|
+
"error: argument -W/--width and -H/--height are mutually "
|
|
134
|
+
"exclusive when not using --canvas"
|
|
135
|
+
)
|
|
136
|
+
|
|
140
137
|
for image_filepath in [Path(f) for f in args.image_paths]:
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
138
|
+
with load_image(image_filepath) as original_image:
|
|
139
|
+
if args.canvas:
|
|
140
|
+
resized_image = _resize_image_onto_canvas(original_image, args)
|
|
141
|
+
else:
|
|
142
|
+
resized_image = _resize_image(original_image, args)
|
|
143
|
+
save_image(args, resized_image, image_filepath, "resize")
|
|
147
144
|
|
|
148
145
|
|
|
149
146
|
def _resize_image_onto_canvas(original_image, args):
|
|
@@ -176,18 +173,20 @@ def _calc_new_image_dimension(image, args) -> tuple:
|
|
|
176
173
|
|
|
177
174
|
original_aspect_ratio = old_width / old_height
|
|
178
175
|
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
176
|
+
match (new_width != DEFAULT_WIDTH, new_height != DEFAULT_HEIGHT):
|
|
177
|
+
case (True, False):
|
|
178
|
+
# user provided width, calculate height to maintain aspect ratio
|
|
179
|
+
new_height = math.ceil(new_width / original_aspect_ratio)
|
|
180
|
+
log.debug("new height calculated based on width: %d", new_height)
|
|
181
|
+
case (False, True):
|
|
182
|
+
# user provided height, calculate width to maintain aspect ratio
|
|
183
|
+
new_width = math.ceil(new_height * original_aspect_ratio)
|
|
184
|
+
log.debug("new width calculated based on height: %d", new_width)
|
|
185
|
+
case _:
|
|
186
|
+
# if both are default, no calculation needed, use defaults.
|
|
187
|
+
# The case where both are non-default is disallowed by argparse
|
|
188
|
+
# when --canvas is False, so we do nothing here.
|
|
189
|
+
pass
|
|
191
190
|
|
|
192
191
|
log.debug("new image dimension: %d x %d", new_width, new_height)
|
|
193
192
|
return (new_width, new_height)
|
fotolab/subcommands/rotate.py
CHANGED
|
@@ -21,7 +21,7 @@ from pathlib import Path
|
|
|
21
21
|
|
|
22
22
|
from PIL import Image
|
|
23
23
|
|
|
24
|
-
from fotolab import save_image
|
|
24
|
+
from fotolab import load_image, save_image
|
|
25
25
|
|
|
26
26
|
log = logging.getLogger(__name__)
|
|
27
27
|
|
|
@@ -91,11 +91,11 @@ def run(args: argparse.Namespace) -> None:
|
|
|
91
91
|
for image_path_str in args.image_paths:
|
|
92
92
|
image_filename = Path(image_path_str)
|
|
93
93
|
log.debug(f"Processing image: {image_filename}")
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
94
|
+
with load_image(image_filename) as original_image:
|
|
95
|
+
log.debug(f"Original image size: {original_image.size}")
|
|
96
|
+
rotated_image = original_image.rotate(
|
|
97
|
+
rotation, expand=True, resample=Image.Resampling.BICUBIC
|
|
98
|
+
)
|
|
99
|
+
log.debug(f"Rotated image size: {rotated_image.size}")
|
|
100
|
+
save_image(args, rotated_image, image_filename, "rotate")
|
|
101
|
+
log.debug(f"Image saved: {image_filename}")
|
fotolab/subcommands/sharpen.py
CHANGED
|
@@ -19,9 +19,9 @@ import argparse
|
|
|
19
19
|
import logging
|
|
20
20
|
from pathlib import Path
|
|
21
21
|
|
|
22
|
-
from PIL import
|
|
22
|
+
from PIL import ImageFilter
|
|
23
23
|
|
|
24
|
-
from fotolab import save_gif_image, save_image
|
|
24
|
+
from fotolab import load_image, save_gif_image, save_image
|
|
25
25
|
|
|
26
26
|
log = logging.getLogger(__name__)
|
|
27
27
|
|
|
@@ -116,19 +116,21 @@ def run(args: argparse.Namespace) -> None:
|
|
|
116
116
|
log.debug(args)
|
|
117
117
|
|
|
118
118
|
for image_path_str in args.image_paths:
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
119
|
+
with load_image(Path(image_path_str)) as original_image:
|
|
120
|
+
sharpen_image = original_image.filter(
|
|
121
|
+
ImageFilter.UnsharpMask(
|
|
122
|
+
args.radius, percent=args.percent, threshold=args.threshold
|
|
123
|
+
)
|
|
123
124
|
)
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
125
|
+
if args.before_after:
|
|
126
|
+
save_gif_image(
|
|
127
|
+
args,
|
|
128
|
+
Path(image_path_str),
|
|
129
|
+
original_image,
|
|
130
|
+
sharpen_image,
|
|
131
|
+
"sharpen",
|
|
132
|
+
)
|
|
133
|
+
else:
|
|
134
|
+
save_image(
|
|
135
|
+
args, sharpen_image, Path(image_path_str), "sharpen"
|
|
136
|
+
)
|
fotolab/subcommands/watermark.py
CHANGED
|
@@ -23,7 +23,7 @@ from typing import Tuple
|
|
|
23
23
|
|
|
24
24
|
from PIL import Image, ImageColor, ImageDraw, ImageFont, ImageSequence
|
|
25
25
|
|
|
26
|
-
from fotolab import save_image
|
|
26
|
+
from fotolab import load_image, save_image
|
|
27
27
|
from fotolab.subcommands.info import get_formatted_camera_info
|
|
28
28
|
|
|
29
29
|
log: logging.Logger = logging.getLogger(__name__)
|
|
@@ -192,7 +192,19 @@ def run(args: argparse.Namespace) -> None:
|
|
|
192
192
|
|
|
193
193
|
for image_path_str in args.image_paths:
|
|
194
194
|
try:
|
|
195
|
-
|
|
195
|
+
with load_image(Path(image_path_str)) as image:
|
|
196
|
+
if image.format == "GIF":
|
|
197
|
+
watermark_gif_image(image, image_path_str, args)
|
|
198
|
+
else:
|
|
199
|
+
watermarked_image: Image.Image = watermark_non_gif_image(
|
|
200
|
+
image, args
|
|
201
|
+
)
|
|
202
|
+
save_image(
|
|
203
|
+
args,
|
|
204
|
+
watermarked_image,
|
|
205
|
+
Path(image_path_str),
|
|
206
|
+
"watermark",
|
|
207
|
+
)
|
|
196
208
|
except FileNotFoundError:
|
|
197
209
|
log.error("Image file not found: %s", image_path_str)
|
|
198
210
|
continue
|
|
@@ -200,16 +212,6 @@ def run(args: argparse.Namespace) -> None:
|
|
|
200
212
|
log.error("Could not open image %s: %s", image_path_str, e)
|
|
201
213
|
continue
|
|
202
214
|
|
|
203
|
-
if image.format == "GIF":
|
|
204
|
-
watermark_gif_image(image, image_path_str, args)
|
|
205
|
-
else:
|
|
206
|
-
watermarked_image: Image.Image = watermark_non_gif_image(
|
|
207
|
-
image, args
|
|
208
|
-
)
|
|
209
|
-
save_image(
|
|
210
|
-
args, watermarked_image, Path(image_path_str), "watermark"
|
|
211
|
-
)
|
|
212
|
-
|
|
213
215
|
|
|
214
216
|
def watermark_gif_image(
|
|
215
217
|
original_image: Image.Image, output_filename: str, args: argparse.Namespace
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
fotolab/__init__.py,sha256=xYHsuP-sNzx6xCzWpierNFJfW1qKEzDd54-UYsHgX5o,3481
|
|
2
|
+
fotolab/__main__.py,sha256=Wk11t_zKs3wJ-okM3yv7Mtj1pRwQZu3NCmpteBwn4Hs,810
|
|
3
|
+
fotolab/cli.py,sha256=Ebx6RQM5Dr8PsIqQ4NOySxnGMzGGI0U7CTawYfHROlk,4499
|
|
4
|
+
fotolab/subcommands/__init__.py,sha256=l3DlIaJ3u3jGjnC1H1yV8LZ_nPqOLJ6gikD4BCaMAQ0,1129
|
|
5
|
+
fotolab/subcommands/animate.py,sha256=4e3PSFxxw4tQFMMMMmJKdDyuon_ZkX4AI3Am2K-Afmw,5857
|
|
6
|
+
fotolab/subcommands/auto.py,sha256=j34xiZlbl8qFpW8kFr3Z-J0Xk08Qiz8Stn1O9I2y1io,3572
|
|
7
|
+
fotolab/subcommands/border.py,sha256=3cIFrHyixV2iE25v-O6heUBsWrCmkBnZvHW7iI0qTo8,4743
|
|
8
|
+
fotolab/subcommands/contrast.py,sha256=6MkjUny4I7gtsFyXJfzKzDVLoY-b9YvHr3ykXPKL7ww,3802
|
|
9
|
+
fotolab/subcommands/env.py,sha256=QoxRvzZKgmoHTUxDV4QYhdChCpMWs5TbXFY_qIpIQpE,1469
|
|
10
|
+
fotolab/subcommands/halftone.py,sha256=hJERzqFsFAwOgPi1eg0MyxW0yt2CzrM3DcN1iDOGdOI,6965
|
|
11
|
+
fotolab/subcommands/info.py,sha256=H3voMi67cKoHT2Mu4RUNQBPdb_MspetPjhOvy-YyNnE,3563
|
|
12
|
+
fotolab/subcommands/montage.py,sha256=Z5hGjgR8V0OiWFg4BB--QIYw2ZGbocQMfR_cPmzrJn4,2751
|
|
13
|
+
fotolab/subcommands/resize.py,sha256=Uv2X_-Bpt0y-ns93t3-EVWQtZfMPLu2HriScCQGYifU,5998
|
|
14
|
+
fotolab/subcommands/rotate.py,sha256=9uSI724K-XspuJOTQX21tesPm3osYyn4AR9mKWtsQTI,2972
|
|
15
|
+
fotolab/subcommands/sharpen.py,sha256=3_r6SZPYZodS1_4yNlFUb-5uVPkOgWGKBw1-6e06iF4,3698
|
|
16
|
+
fotolab/subcommands/watermark.py,sha256=JelYFSZ0_RgHQLEG82r3Jzkw_nX8OSZ1wuMC-zmA0Hs,11499
|
|
17
|
+
fotolab-0.34.2.dist-info/licenses/LICENSE.md,sha256=tGtFDwxWTjuR9syrJoSv1Hiffd2u8Tu8cYClfrXS_YU,31956
|
|
18
|
+
fotolab-0.34.2.dist-info/METADATA,sha256=bfaZqujVzur_wywXdQBMHwZShlcyS8NVWe8N0WUzt38,15101
|
|
19
|
+
fotolab-0.34.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
20
|
+
fotolab-0.34.2.dist-info/entry_points.txt,sha256=0e1go9plFpqj5FP-OpV2acxTAx3ViI59PMXuhejvgcQ,45
|
|
21
|
+
fotolab-0.34.2.dist-info/top_level.txt,sha256=XUJ3gdpsbjohoZCLdVlbQrxAUDkbQg7WwGQG2DaN0t4,8
|
|
22
|
+
fotolab-0.34.2.dist-info/RECORD,,
|
fotolab-0.34.1.dist-info/RECORD
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
fotolab/__init__.py,sha256=0UZ6OZFCRkc2Fwc4LT1UtE9JdK3uq0uL8fSSVSOuVyo,3161
|
|
2
|
-
fotolab/__main__.py,sha256=Wk11t_zKs3wJ-okM3yv7Mtj1pRwQZu3NCmpteBwn4Hs,810
|
|
3
|
-
fotolab/cli.py,sha256=Ebx6RQM5Dr8PsIqQ4NOySxnGMzGGI0U7CTawYfHROlk,4499
|
|
4
|
-
fotolab/subcommands/__init__.py,sha256=l3DlIaJ3u3jGjnC1H1yV8LZ_nPqOLJ6gikD4BCaMAQ0,1129
|
|
5
|
-
fotolab/subcommands/animate.py,sha256=3nXWeQ0l6hFMrFfxba9py60b_6Hv2WJwR_VuYzzrexw,5867
|
|
6
|
-
fotolab/subcommands/auto.py,sha256=j34xiZlbl8qFpW8kFr3Z-J0Xk08Qiz8Stn1O9I2y1io,3572
|
|
7
|
-
fotolab/subcommands/border.py,sha256=N_ptzy3vgHcmd7WwGcnSgJ34usNGmlGNT4xJ5D0hD5I,4703
|
|
8
|
-
fotolab/subcommands/contrast.py,sha256=JRnGPSQJYweZkqBIosFcJHYuO3bryC3WuHQStmlbYK0,3699
|
|
9
|
-
fotolab/subcommands/env.py,sha256=QoxRvzZKgmoHTUxDV4QYhdChCpMWs5TbXFY_qIpIQpE,1469
|
|
10
|
-
fotolab/subcommands/halftone.py,sha256=ScJB54gnmUpxh9wYCt_Y7ertZl-gYW_WPAPBHC44ReE,6894
|
|
11
|
-
fotolab/subcommands/info.py,sha256=H3voMi67cKoHT2Mu4RUNQBPdb_MspetPjhOvy-YyNnE,3563
|
|
12
|
-
fotolab/subcommands/montage.py,sha256=bjn-RlbXur38-5YNyyTs0kI2Z-caVDZtBt5EDuH5D1M,2598
|
|
13
|
-
fotolab/subcommands/resize.py,sha256=8JKHLJii6qq9eQ3QvqF56tjriRpebPZewU71xOucdug,5804
|
|
14
|
-
fotolab/subcommands/rotate.py,sha256=M6i34mgD10F9jFlXQGP6-l78BwZY8Nh-eNteAEBOjH4,2925
|
|
15
|
-
fotolab/subcommands/sharpen.py,sha256=Swd2IBO2ENc0g-Ukl-Jtj7OXaytFcTN8qEx8MRchFGE,3582
|
|
16
|
-
fotolab/subcommands/watermark.py,sha256=9mP2PWaXjAyoMsZR4mkemx18gL0pS90Qx9lT5CuOBkA,11343
|
|
17
|
-
fotolab-0.34.1.dist-info/licenses/LICENSE.md,sha256=tGtFDwxWTjuR9syrJoSv1Hiffd2u8Tu8cYClfrXS_YU,31956
|
|
18
|
-
fotolab-0.34.1.dist-info/METADATA,sha256=Nln4axVoaQ3tiFdDwyL0SkJMvpc9N_LixKjSD-Bkv2A,15101
|
|
19
|
-
fotolab-0.34.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
20
|
-
fotolab-0.34.1.dist-info/entry_points.txt,sha256=0e1go9plFpqj5FP-OpV2acxTAx3ViI59PMXuhejvgcQ,45
|
|
21
|
-
fotolab-0.34.1.dist-info/top_level.txt,sha256=XUJ3gdpsbjohoZCLdVlbQrxAUDkbQg7WwGQG2DaN0t4,8
|
|
22
|
-
fotolab-0.34.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|