Skip to content

Commit fcc0266

Browse files
committed
fix V2.
1 parent 03694fd commit fcc0266

38 files changed

+114
-88
lines changed

.flake8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ exclude =
77
old,
88
build,
99
dist
10-
ignore = E501
10+
ignore = E501, W503, F841

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "anshitsu"
3-
version = "2.0.0" # using poetry-dynamic-versioning
3+
version = "2.0.2" # using poetry-dynamic-versioning
44
description = "A tiny digital photographic utility."
55
readme = "README.md"
66
authors = ["Iosif Takakura <[email protected]>"]

src/anshitsu/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version: str = "v1.6.0"
1+
version: str = "v2.0.2"

src/anshitsu/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
import fire.core
1010
from PIL import Image, UnidentifiedImageError
1111

12-
from anshitsu.process.processor import Processor
1312
from anshitsu.__version__ import version as __version__
13+
from anshitsu.process.processor import Processor
1414

1515

1616
def cli(

src/anshitsu/process/brightness.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from PIL import Image, ImageEnhance
22

3+
34
def brightness(image: Image, brightness: float) -> Image:
45
"""
56
brightness
@@ -15,4 +16,4 @@ def brightness(image: Image, brightness: float) -> Image:
1516
"""
1617
enhancer = ImageEnhance.Brightness(image)
1718
image = enhancer.enhance(brightness)
18-
return image
19+
return image

src/anshitsu/process/color.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from PIL import Image, ImageEnhance
22

3+
34
def color(image: Image, color: float) -> Image:
45
"""
56
contrast
@@ -15,4 +16,4 @@ def color(image: Image, color: float) -> Image:
1516
"""
1617
enhancer = ImageEnhance.Contrast(image)
1718
image = enhancer.enhance(color)
18-
return image
19+
return image

src/anshitsu/process/color_auto_adjust.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from PIL import Image
21
import colorcorrect.algorithm as cca
2+
from PIL import Image
33
from colorcorrect.util import to_pil, from_pil
44

55

@@ -14,4 +14,4 @@ def color_auto_adjust(image: Image) -> Image:
1414
"""
1515
if image.mode == "L":
1616
return image
17-
return to_pil(cca.automatic_color_equalization(from_pil(image)))
17+
return to_pil(cca.automatic_color_equalization(from_pil(image)))

src/anshitsu/process/color_stretch.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
from collections import namedtuple
2-
from typing import Optional, Tuple
3-
4-
from PIL import Image
51
import colorcorrect.algorithm as cca
2+
from PIL import Image
63
from colorcorrect.util import to_pil, from_pil
74

85

@@ -20,4 +17,4 @@ def color_stretch(image: Image) -> Image:
2017
"""
2118
if image.mode == "L":
2219
return image
23-
return to_pil(cca.stretch(cca.grey_world(from_pil(image))))
20+
return to_pil(cca.stretch(cca.grey_world(from_pil(image))))

src/anshitsu/process/contrast.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from PIL import Image, ImageEnhance
22

3+
34
def contrast(image: Image, contrast: float) -> Image:
45
"""
56
contrast
@@ -24,4 +25,4 @@ def contrast(image: Image, contrast: float) -> Image:
2425
"""
2526
enhancer = ImageEnhance.Contrast(image)
2627
image = enhancer.enhance(contrast)
27-
return image
28+
return image

src/anshitsu/process/cyanotype.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from PIL import Image, ImageOps
22

3+
34
def cyanotype(image: Image) -> Image:
45
"""
56
cyanotype
@@ -11,4 +12,4 @@ def cyanotype(image: Image) -> Image:
1112
"""
1213
if image.mode == "L":
1314
image = ImageOps.colorize(image, black=(26, 68, 114), white=(255, 255, 255))
14-
return image
15+
return image

0 commit comments

Comments
 (0)