Skip to content

Commit

Permalink
2023
Browse files Browse the repository at this point in the history
  • Loading branch information
FredHappyface committed Aug 31, 2023
1 parent 1a315aa commit 69c9eae
Show file tree
Hide file tree
Showing 30 changed files with 34 additions and 55 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
All major and minor version changes will be documented in this file. Details of
patch-level version changes can be found in [commit messages](../../commits/master).

## 2023 - 2023/08/31

- Update deps

## 2022.0.1 2022/04/06

- Remove metprint
Expand Down
1 change: 0 additions & 1 deletion documentation/reference/layeredimage/blend.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@
Blend

> Auto-generated documentation for [layeredimage.blend](../../../layeredimage/blend.py) module.
- [Blend](#blend)
4 changes: 1 addition & 3 deletions documentation/reference/layeredimage/io/common.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,4 @@ Return layers and throw a warning if the image has groups.
```python
def expandLayersToCanvas(layeredImage: LayeredImage, imageFormat: str) -> list[Image]:
...
```


```
4 changes: 1 addition & 3 deletions documentation/reference/layeredimage/io/gif.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,4 @@ Save a layered image as .gif.
```python
def saveLayer_GIF(fileName: str, layeredImage: LayeredImage) -> None:
...
```


```
4 changes: 1 addition & 3 deletions documentation/reference/layeredimage/io/layered.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,4 @@ def writeImage_LAYERED(
image: Image.Image, zipFile: ZipFile, path: str, compressed: bool = False
):
...
```


```
4 changes: 1 addition & 3 deletions documentation/reference/layeredimage/io/lsr.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,4 @@ Save a layered image as .lsr.
```python
def saveLayer_LSR(fileName: str, layeredImage: LayeredImage) -> None:
...
```


```
4 changes: 1 addition & 3 deletions documentation/reference/layeredimage/io/ora.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,4 @@ Save a layered image as .ora.
```python
def saveLayer_ORA(fileName: str, layeredImage: LayeredImage) -> None:
...
```


```
4 changes: 1 addition & 3 deletions documentation/reference/layeredimage/io/pdn.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,4 @@ Save a layered image as .pdn.
```python
def saveLayer_PDN(fileName: str, layeredImage: LayeredImage) -> None:
...
```


```
4 changes: 1 addition & 3 deletions documentation/reference/layeredimage/io/psd.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,4 @@ Save a layered image as .psd.
```python
def saveLayer_PSD(fileName: str, layeredImage: LayeredImage) -> None:
...
```


```
4 changes: 1 addition & 3 deletions documentation/reference/layeredimage/io/tiff.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,4 @@ Save a layered image as .tiff or .tif.
```python
def saveLayer_TIFF(fileName: str, layeredImage: LayeredImage) -> None:
...
```


```
4 changes: 1 addition & 3 deletions documentation/reference/layeredimage/io/webp.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,4 @@ Save a layered image as .webp.
```python
def saveLayer_WEBP(fileName: str, layeredImage: LayeredImage):
...
```


```
4 changes: 1 addition & 3 deletions documentation/reference/layeredimage/io/xcf.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,4 @@ Save a layered image as .xcf.
```python
def saveLayer_XCF(fileName: str, layeredImage: LayeredImage) -> None:
...
```


```
4 changes: 1 addition & 3 deletions documentation/reference/layeredimage/layeredimage.md
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,4 @@ def flattenLayerOrGroup(
ignoreHidden: bool = True,
):
...
```


```
4 changes: 1 addition & 3 deletions documentation/reference/layeredimage/layergroup.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,4 @@ Get the object as a dict.
```python
def json(self) -> dict[str, Any]:
...
```


```
4 changes: 2 additions & 2 deletions layeredimage/io/psd.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
#### PSD ####
def openLayer_PSD(file: str) -> LayeredImage:
"""Open a .psd file into a layered image."""
from psdtoolsx import PSDImage
from psdtoolsx.constants import BlendMode as psdB
from psd_tools import PSDImage
from psd_tools.constants import BlendMode as psdB

blendLookup = {
psdB.NORMAL: BlendType.NORMAL,
Expand Down
22 changes: 11 additions & 11 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "layeredimage"
version = "2022.0.1"
version = "2023"
license = "mit"
description = "Use this module to read, and write to a number of layered image formats"
authors = ["FredHappyface"]
Expand All @@ -23,21 +23,21 @@ readme = "README.md"

[tool.poetry.dependencies]
python = ">=3.8,<4.0"
blendmodes = "<2024,>=2022"
Pillow = "<10,>=9.0.0"
pylsr = "<2024,>=2022"
blendmodes = "<2025,>=2023"
pylsr = "<2025,>=2023"
pyora = "<2,>=0.3.11"
gimpformats = "<2024,>=2022"
pypdn = "<2,>=1.0.6"
deprecation = "<3,>=2.1.0"
psdtoolsx = "<20,>=19.18.0"
psd-tools = "<2,>=1.9.28"
pillow = "<11,>=10.0.0"
gimpformats = "<2025,>=2023.1"

[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]
imgcompare = "^2.0.1"
pytest = "^7.1.1"
pylint = "^2.13.5"
handsdown = "^1.1.0"
coverage = "^6.3.2"
pytest = "^7.4.0"
pylint = "^2.17.5"
handsdown = "^2.0.1"
coverage = "^7.3.0"

[tool.black]
line-length = 100
Expand Down
10 changes: 5 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Pillow<10,>=9.0.0
blendmodes<2024,>=2022
blendmodes<2025,>=2023
deprecation<3,>=2.1.0
gimpformats<2024,>=2022
psdtoolsx<20,>=19.18.0
pylsr<2024,>=2022
gimpformats<2025,>=2023.1
pillow<11,>=10.0.0
psd-tools<2,>=1.9.28
pylsr<2025,>=2023
pyora<2,>=0.3.11
pypdn<2,>=1.0.6
Binary file modified tests/data/gif_output.ora
Binary file not shown.
Binary file modified tests/data/layered_output.ora
Binary file not shown.
Binary file modified tests/data/layeredc_output.ora
Binary file not shown.
Binary file modified tests/data/lsr_output.lsr
Binary file not shown.
Binary file modified tests/data/lsr_output.ora
Binary file not shown.
Binary file modified tests/data/ora_output.layered
Binary file not shown.
Binary file modified tests/data/ora_output.layeredc
Binary file not shown.
Binary file modified tests/data/ora_output.ora
Binary file not shown.
Binary file modified tests/data/pdn_output.ora
Binary file not shown.
Binary file modified tests/data/psd_output.ora
Binary file not shown.
Binary file modified tests/data/tiff_output.ora
Binary file not shown.
Binary file modified tests/data/webp_output.ora
Binary file not shown.
Binary file modified tests/data/xcf_output.ora
Binary file not shown.

0 comments on commit 69c9eae

Please sign in to comment.