Skip to content

Commit

Permalink
2021 fix bug on py3.7 and 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
FredHappyface committed Jan 18, 2021
1 parent 6540348 commit 245f2f5
Show file tree
Hide file tree
Showing 16 changed files with 34 additions and 32 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
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).

## 2021 - 2021.01.18
- Fix bug on python 3.7/3.8

## 2020.7 - 2020/10/29
- Using FHMake to build
- Added type hinting
Expand Down
60 changes: 29 additions & 31 deletions DOCS/layeredimage/io.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

> Auto-generated documentation for [layeredimage.io](../../layeredimage/io.py) module.
Do file io

- [Layeredimage](../README.md#layeredimage-index) / [Modules](../README.md#layeredimage-modules) / [layeredimage](index.md#layeredimage) / io
- [addLayer_ORA](#addlayer_ora)
- [blendModeLookup](#blendmodelookup)
Expand Down Expand Up @@ -37,7 +35,7 @@ Do file io

## addLayer_ORA

[[find in source code]](../../layeredimage/io.py#L139)
[[find in source code]](../../layeredimage/io.py#L140)

```python
def addLayer_ORA(project, layer, blendLookup):
Expand All @@ -47,7 +45,7 @@ Update the project with a shiny new layer

## blendModeLookup

[[find in source code]](../../layeredimage/io.py#L69)
[[find in source code]](../../layeredimage/io.py#L70)

```python
def blendModeLookup(
Expand All @@ -65,7 +63,7 @@ Get the blendmode from a lookup table

## exportFlatImage

[[find in source code]](../../layeredimage/io.py#L65)
[[find in source code]](../../layeredimage/io.py#L66)

```python
def exportFlatImage(fileName: str, layeredImage: LayeredImage) -> None:
Expand All @@ -79,7 +77,7 @@ Export the layered image to a unilayer image file

## extNotRecognised

[[find in source code]](../../layeredimage/io.py#L20)
[[find in source code]](../../layeredimage/io.py#L21)

```python
def extNotRecognised(fileName: str):
Expand All @@ -89,7 +87,7 @@ Output the file extension not recognised error

## getRasterLayers

[[find in source code]](../../layeredimage/io.py#L362)
[[find in source code]](../../layeredimage/io.py#L363)

```python
def getRasterLayers(layeredImage: LayeredImage, imageFormat: str):
Expand All @@ -103,7 +101,7 @@ Return layers and throw a warning if the image has groups

## grabLayer_LAYERED

[[find in source code]](../../layeredimage/io.py#L437)
[[find in source code]](../../layeredimage/io.py#L438)

```python
def grabLayer_LAYERED(
Expand All @@ -117,7 +115,7 @@ Grab an image from .layered

## openLayerImage

[[find in source code]](../../layeredimage/io.py#L26)
[[find in source code]](../../layeredimage/io.py#L27)

```python
def openLayerImage(file: str) -> LayeredImage:
Expand All @@ -139,7 +137,7 @@ Open a layer image file into a layer image object

## openLayer_GIF

[[find in source code]](../../layeredimage/io.py#L326)
[[find in source code]](../../layeredimage/io.py#L327)

```python
def openLayer_GIF(file: str) -> LayeredImage:
Expand All @@ -153,7 +151,7 @@ Open a .gif file into a layered image

## openLayer_LAYERED

[[find in source code]](../../layeredimage/io.py#L406)
[[find in source code]](../../layeredimage/io.py#L407)

```python
def openLayer_LAYERED(file: str) -> LayeredImage:
Expand All @@ -167,7 +165,7 @@ Open a .layered file into a layered image

## openLayer_LAYEREDC

[[find in source code]](../../layeredimage/io.py#L476)
[[find in source code]](../../layeredimage/io.py#L477)

```python
def openLayer_LAYEREDC(file: str) -> LayeredImage:
Expand All @@ -181,7 +179,7 @@ Open a .layeredc file into a layered image

## openLayer_LSR

[[find in source code]](../../layeredimage/io.py#L374)
[[find in source code]](../../layeredimage/io.py#L375)

```python
def openLayer_LSR(file: str) -> LayeredImage:
Expand All @@ -195,7 +193,7 @@ Open a .lsr file into a layered image

## openLayer_ORA

[[find in source code]](../../layeredimage/io.py#L78)
[[find in source code]](../../layeredimage/io.py#L79)

```python
def openLayer_ORA(file: str) -> LayeredImage:
Expand All @@ -209,7 +207,7 @@ Open an .ora file into a layered image

## openLayer_PDN

[[find in source code]](../../layeredimage/io.py#L264)
[[find in source code]](../../layeredimage/io.py#L265)

```python
def openLayer_PDN(file: str) -> LayeredImage:
Expand All @@ -223,7 +221,7 @@ Open a .pdn file into a layered image

## openLayer_PSD

[[find in source code]](../../layeredimage/io.py#L147)
[[find in source code]](../../layeredimage/io.py#L148)

```python
def openLayer_PSD(file: str) -> LayeredImage:
Expand All @@ -237,7 +235,7 @@ Open a .psd file into a layered image

## openLayer_TIFF

[[find in source code]](../../layeredimage/io.py#L292)
[[find in source code]](../../layeredimage/io.py#L293)

```python
def openLayer_TIFF(file: str) -> LayeredImage:
Expand All @@ -251,7 +249,7 @@ Open a .tiff or a .tif file into a layered image

## openLayer_WEBP

[[find in source code]](../../layeredimage/io.py#L345)
[[find in source code]](../../layeredimage/io.py#L346)

```python
def openLayer_WEBP(file: str) -> LayeredImage:
Expand All @@ -265,7 +263,7 @@ Open a .webp file into a layered image

## openLayer_XCF

[[find in source code]](../../layeredimage/io.py#L191)
[[find in source code]](../../layeredimage/io.py#L192)

```python
def openLayer_XCF(file: str) -> LayeredImage:
Expand All @@ -279,7 +277,7 @@ Open an .xcf file into a layered image

## saveLayerImage

[[find in source code]](../../layeredimage/io.py#L48)
[[find in source code]](../../layeredimage/io.py#L49)

```python
def saveLayerImage(fileName: str, layeredImage: LayeredImage) -> None:
Expand All @@ -298,7 +296,7 @@ Save a layered image to a file

## saveLayer_GIF

[[find in source code]](../../layeredimage/io.py#L338)
[[find in source code]](../../layeredimage/io.py#L339)

```python
def saveLayer_GIF(fileName: str, layeredImage: LayeredImage) -> None:
Expand All @@ -312,7 +310,7 @@ Save a layered image as .gif

## saveLayer_LAYERED

[[find in source code]](../../layeredimage/io.py#L445)
[[find in source code]](../../layeredimage/io.py#L446)

```python
def saveLayer_LAYERED(fileName: str, layeredImage: LayeredImage) -> None:
Expand All @@ -326,7 +324,7 @@ Save a layered image as .layered

## saveLayer_LAYEREDC

[[find in source code]](../../layeredimage/io.py#L480)
[[find in source code]](../../layeredimage/io.py#L481)

```python
def saveLayer_LAYEREDC(fileName: str, layeredImage: LayeredImage) -> None:
Expand All @@ -340,7 +338,7 @@ Save a layeredc image as .layered

## saveLayer_LSR

[[find in source code]](../../layeredimage/io.py#L386)
[[find in source code]](../../layeredimage/io.py#L387)

```python
def saveLayer_LSR(fileName: str, layeredImage: LayeredImage) -> None:
Expand All @@ -354,7 +352,7 @@ Save a layered image as .lsr

## saveLayer_ORA

[[find in source code]](../../layeredimage/io.py#L112)
[[find in source code]](../../layeredimage/io.py#L113)

```python
def saveLayer_ORA(fileName: str, layeredImage: LayeredImage) -> None:
Expand All @@ -368,7 +366,7 @@ Save a layered image as .ora

## saveLayer_PDN

[[find in source code]](../../layeredimage/io.py#L285)
[[find in source code]](../../layeredimage/io.py#L286)

```python
def saveLayer_PDN(fileName: str, layeredImage: LayeredImage) -> None:
Expand All @@ -382,7 +380,7 @@ Save a layered image as .pdn

## saveLayer_PSD

[[find in source code]](../../layeredimage/io.py#L184)
[[find in source code]](../../layeredimage/io.py#L185)

```python
def saveLayer_PSD(fileName: str, layeredImage: LayeredImage) -> None:
Expand All @@ -396,7 +394,7 @@ Save a layered image as .psd

## saveLayer_TIFF

[[find in source code]](../../layeredimage/io.py#L319)
[[find in source code]](../../layeredimage/io.py#L320)

```python
def saveLayer_TIFF(fileName: str, layeredImage: LayeredImage) -> None:
Expand All @@ -410,7 +408,7 @@ Save a layered image as .tiff or .tif

## saveLayer_WEBP

[[find in source code]](../../layeredimage/io.py#L356)
[[find in source code]](../../layeredimage/io.py#L357)

```python
def saveLayer_WEBP(fileName: str, layeredImage: LayeredImage):
Expand All @@ -424,7 +422,7 @@ Save a layered image as .webp

## saveLayer_XCF

[[find in source code]](../../layeredimage/io.py#L255)
[[find in source code]](../../layeredimage/io.py#L256)

```python
def saveLayer_XCF(fileName: str, layeredImage: LayeredImage) -> None:
Expand All @@ -438,7 +436,7 @@ Save a layered image as .xcf

## writeImage_LAYERED

[[find in source code]](../../layeredimage/io.py#L465)
[[find in source code]](../../layeredimage/io.py#L466)

```python
def writeImage_LAYERED(
Expand Down
1 change: 1 addition & 0 deletions layeredimage/io.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from __future__ import annotations
""" Do file io """

# To avoid throwing import errors for the sake of it, specialised imports are
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "layeredimage"
version = "2020.7.0"
version = "2021"
description = "Use this module to read, and write to a number of layered image formats"
authors = ["FredHappyface"]
classifiers = [
Expand Down
Binary file modified test/base24(gif).ora
Binary file not shown.
Binary file modified test/base24(layered).ora
Binary file not shown.
Binary file modified test/base24(layeredc).ora
Binary file not shown.
Binary file modified test/base24(lsr).lsr
Binary file not shown.
Binary file modified test/base24(lsr).ora
Binary file not shown.
Binary file modified test/base24(ora).layered
Binary file not shown.
Binary file modified test/base24(ora).layeredc
Binary file not shown.
Binary file modified test/base24(ora).ora
Binary file not shown.
Binary file modified test/base24(psd).ora
Binary file not shown.
Binary file modified test/base24(tiff).ora
Binary file not shown.
Binary file modified test/base24(webp).ora
Binary file not shown.
Binary file modified test/base24(xcf).ora
Binary file not shown.

0 comments on commit 245f2f5

Please sign in to comment.