apftool 0.4.2__tar.gz → 0.4.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: apftool
3
- Version: 0.4.2
3
+ Version: 0.4.3
4
4
  Summary: Encoder and decoder for Aperture Science Image Format (apf), Aperture Science Image Format 2 (apf2), Wireless Bitmap (wbmp), and Over-The-Air Bitmap (otb)
5
5
  Author: Mari (kbity)
6
6
  Requires-Python: >=3.10
@@ -70,9 +70,11 @@ most of these a builtins but you may need to install PIL seperately
70
70
 
71
71
  ## changelog:
72
72
 
73
- 0.4.1 - improve otb quality
73
+ 0.4.3 - actually improve otb quality
74
74
 
75
- 0.4.1 - improve readme.md, fix otb encoder skuing
75
+ 0.4.2 - did not improve otb quality
76
+
77
+ 0.4.1 - improve readme.md, fix otb encoder skuing due to flushing
76
78
 
77
79
  0.4.0 - add support for otb images, improve readme.md, and add decodeany to decode all suported formats automatically
78
80
 
@@ -59,9 +59,11 @@ most of these a builtins but you may need to install PIL seperately
59
59
 
60
60
  ## changelog:
61
61
 
62
- 0.4.1 - improve otb quality
62
+ 0.4.3 - actually improve otb quality
63
63
 
64
- 0.4.1 - improve readme.md, fix otb encoder skuing
64
+ 0.4.2 - did not improve otb quality
65
+
66
+ 0.4.1 - improve readme.md, fix otb encoder skuing due to flushing
65
67
 
66
68
  0.4.0 - add support for otb images, improve readme.md, and add decodeany to decode all suported formats automatically
67
69
 
@@ -11,7 +11,6 @@ def encodeotab(img: Image, width=255, height=255):
11
11
  if width > 255 or height > 255:
12
12
  raise Exception("Invalid Resolution")
13
13
  res = img.size
14
- img = img.convert("1")
15
14
 
16
15
  # don't upscale
17
16
  if width > res[0]:
@@ -19,6 +18,7 @@ def encodeotab(img: Image, width=255, height=255):
19
18
  if height > res[1]:
20
19
  height = res[1]
21
20
  img = img.resize((width, height))
21
+ img = img.convert("1")
22
22
 
23
23
  pixels = img.load()
24
24
  payload = b'\x00' # type 0 hardcoded header
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: apftool
3
- Version: 0.4.2
3
+ Version: 0.4.3
4
4
  Summary: Encoder and decoder for Aperture Science Image Format (apf), Aperture Science Image Format 2 (apf2), Wireless Bitmap (wbmp), and Over-The-Air Bitmap (otb)
5
5
  Author: Mari (kbity)
6
6
  Requires-Python: >=3.10
@@ -70,9 +70,11 @@ most of these a builtins but you may need to install PIL seperately
70
70
 
71
71
  ## changelog:
72
72
 
73
- 0.4.1 - improve otb quality
73
+ 0.4.3 - actually improve otb quality
74
74
 
75
- 0.4.1 - improve readme.md, fix otb encoder skuing
75
+ 0.4.2 - did not improve otb quality
76
+
77
+ 0.4.1 - improve readme.md, fix otb encoder skuing due to flushing
76
78
 
77
79
  0.4.0 - add support for otb images, improve readme.md, and add decodeany to decode all suported formats automatically
78
80
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "apftool"
7
- version = "0.4.2"
7
+ version = "0.4.3"
8
8
  description = "Encoder and decoder for Aperture Science Image Format (apf), Aperture Science Image Format 2 (apf2), Wireless Bitmap (wbmp), and Over-The-Air Bitmap (otb)"
9
9
  authors = [{name = "Mari (kbity)"}]
10
10
  readme = "README.md"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes