Glymur 0.14.1.post1__py3-none-any.whl → 0.14.4__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.
- glymur/_core_converter.py +1 -1
- glymur/jp2box.py +1 -1
- glymur/jp2k.py +9 -9
- glymur/jp2kr.py +18 -31
- glymur/lib/_tiff.py +2142 -0
- glymur/lib/tiff.py +6 -2138
- glymur/options.py +3 -4
- glymur/tiff.py +2 -2
- glymur/version.py +2 -2
- {glymur-0.14.1.post1.dist-info → glymur-0.14.4.dist-info}/METADATA +2 -1
- glymur-0.14.4.dist-info/RECORD +28 -0
- {glymur-0.14.1.post1.dist-info → glymur-0.14.4.dist-info}/WHEEL +1 -1
- glymur-0.14.1.post1.dist-info/RECORD +0 -27
- {glymur-0.14.1.post1.dist-info → glymur-0.14.4.dist-info}/entry_points.txt +0 -0
- {glymur-0.14.1.post1.dist-info → glymur-0.14.4.dist-info}/licenses/LICENSE.txt +0 -0
- {glymur-0.14.1.post1.dist-info → glymur-0.14.4.dist-info}/top_level.txt +0 -0
glymur/options.py
CHANGED
|
@@ -71,11 +71,10 @@ def set_option(key, value):
|
|
|
71
71
|
raise KeyError(f"{key} not valid.")
|
|
72
72
|
|
|
73
73
|
if key == "lib.num_threads":
|
|
74
|
-
if version.openjpeg_version < "2.
|
|
74
|
+
if version.openjpeg_version < "2.4.0":
|
|
75
75
|
msg = (
|
|
76
|
-
|
|
77
|
-
f"
|
|
78
|
-
f"{version.openjpeg_version}."
|
|
76
|
+
"The minimum supported version of OpenJPEG is 2.4.0. "
|
|
77
|
+
f"Your version is {version.openjpeg_version}."
|
|
79
78
|
)
|
|
80
79
|
raise RuntimeError(msg)
|
|
81
80
|
if not opj2.has_thread_support():
|
glymur/tiff.py
CHANGED
|
@@ -14,7 +14,7 @@ import numpy as np
|
|
|
14
14
|
from glymur import Jp2k, set_option
|
|
15
15
|
from glymur.core import SRGB
|
|
16
16
|
from ._core_converter import _2JP2Converter
|
|
17
|
-
from .lib import
|
|
17
|
+
from .lib import _tiff as libtiff
|
|
18
18
|
from . import jp2box
|
|
19
19
|
|
|
20
20
|
# we need a lower case mapping from the tag name to the tag number
|
|
@@ -243,7 +243,7 @@ class Tiff2Jp2k(_2JP2Converter):
|
|
|
243
243
|
temp_filename = str(self.jp2_path) + ".tmp"
|
|
244
244
|
self.jp2.wrap(temp_filename, boxes=self.jp2.box)
|
|
245
245
|
shutil.move(temp_filename, self.jp2_path)
|
|
246
|
-
self.jp2.
|
|
246
|
+
self.jp2._parse()
|
|
247
247
|
|
|
248
248
|
def append_extra_jp2_boxes(self):
|
|
249
249
|
"""Copy over the TIFF IFD. Place it in a UUID box. Append to the JPEG
|
glymur/version.py
CHANGED
|
@@ -16,11 +16,11 @@ import numpy as np
|
|
|
16
16
|
|
|
17
17
|
# Local imports ...
|
|
18
18
|
from .lib import openjp2 as opj2
|
|
19
|
-
from .lib import tiff
|
|
19
|
+
from .lib import _tiff as tiff
|
|
20
20
|
|
|
21
21
|
# Do not change the format of this next line! Doing so risks breaking
|
|
22
22
|
# setup.py
|
|
23
|
-
version = "0.14.
|
|
23
|
+
version = "0.14.4"
|
|
24
24
|
|
|
25
25
|
version_tuple = parse(version).release
|
|
26
26
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: Glymur
|
|
3
|
-
Version: 0.14.
|
|
3
|
+
Version: 0.14.4
|
|
4
4
|
Summary: Read and write JPEG 2000 files
|
|
5
5
|
Author-email: John Evans <jevans667cc@proton.me>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -12,6 +12,7 @@ Classifier: Programming Language :: Python
|
|
|
12
12
|
Classifier: Programming Language :: Python :: 3.11
|
|
13
13
|
Classifier: Programming Language :: Python :: 3.12
|
|
14
14
|
Classifier: Programming Language :: Python :: 3.13
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
15
16
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
16
17
|
Classifier: Intended Audience :: Science/Research
|
|
17
18
|
Classifier: Operating System :: OS Independent
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
glymur/__init__.py,sha256=8kFoLkxAFhVEsgR0WCEaF0iXE5GZSp47nPlheGMpP-c,625
|
|
2
|
+
glymur/_core_converter.py,sha256=qdJpzJpItFdOxeMq8q-pz29I917qCJ4NhBk1zlUjxL8,13043
|
|
3
|
+
glymur/_iccprofile.py,sha256=v0nOhJuZsKViBUYCf8TWVJvs1k0vC9PGYdbkEIfGuI4,4156
|
|
4
|
+
glymur/codestream.py,sha256=JQUVS8nENdf-rgMDuGwsrg0UakhN_kIShfZEzIV7IT4,62695
|
|
5
|
+
glymur/command_line.py,sha256=3Wngx3wfAvP2PEf4-XRbmm43Bz8zywIL3Gd-6k-wMvY,11485
|
|
6
|
+
glymur/config.py,sha256=lVunNA-A475BX27L_qmrec_lm1InzHuL4_jkG8v_1FA,4140
|
|
7
|
+
glymur/core.py,sha256=O07TfaRW2YmurkFMiurl0DkDSGB0slDAAzP83K1HPFA,3613
|
|
8
|
+
glymur/jp2box.py,sha256=hkhs_rE0yYpgnl4cvt4KXGJzzXfJ_HLBL74TvkZpoN4,113853
|
|
9
|
+
glymur/jp2k.py,sha256=5NoDkXo2JYET-7TQcU8YveI4f10RvZunnWZZaHUK5fw,56941
|
|
10
|
+
glymur/jp2kr.py,sha256=kR9SQjGQ4Ml40UP3oSjhVCK7hI1pDC8_TKwmMEzdeU0,35407
|
|
11
|
+
glymur/jpeg.py,sha256=PSsyv4ZQTMXGQnpX9Y5-JGxHa0t6QZPZvd5BsnOhahQ,5560
|
|
12
|
+
glymur/options.py,sha256=avZ2ba6yoLWZZ2J8-BI1h0k5Jy1bW0SuRq5guj3yNlo,4372
|
|
13
|
+
glymur/tiff.py,sha256=tLFBuKlMxbMPphAZ-RWLQMWC0lYzB0cJVQmBlGRYpbo,29552
|
|
14
|
+
glymur/version.py,sha256=Y6RbjleIxC7hPvA1UPLiHD1xkpot8ZKboSif1fAeG0Y,990
|
|
15
|
+
glymur/data/__init__.py,sha256=n2KZrHV15it7Wu4YCaBLXui1ZleQ30dnZ92dyP6q05k,955
|
|
16
|
+
glymur/data/goodstuff.j2k,sha256=xKQG68KMu33gYjRUDTQvam1Cue2tdio85rNp5J-rYZE,115220
|
|
17
|
+
glymur/data/heliov.jpx,sha256=KXnYdBZgl25jcGLu-m-QfhuP9pqUXV0Hp9HHEdJqr34,1399071
|
|
18
|
+
glymur/data/nemo.jp2,sha256=yJ1NkTEwU0B_gBtAiA1c5hxtGYSJtJgq6cHC2IHpj70,1132373
|
|
19
|
+
glymur/lib/__init__.py,sha256=JnM9oPfcZhBDLKo7_yLS-lIRQ1wXb1N9hKKQ-G7vYVk,127
|
|
20
|
+
glymur/lib/_tiff.py,sha256=t8XfgwX2jX0qSU8RuTkNvWLe2390Bp7TiVlr8K2Ku68,51828
|
|
21
|
+
glymur/lib/openjp2.py,sha256=0UWPp2mto8G43yRUhGfpcS1RV6l3ac1YQrlVyBhxvjs,44064
|
|
22
|
+
glymur/lib/tiff.py,sha256=H9hgYh-gBx8LFec4LYReQOpscY51hpK6TIU27-zY8gg,260
|
|
23
|
+
glymur-0.14.4.dist-info/licenses/LICENSE.txt,sha256=G9pvBgkJdPTtZqQmoRyIgAydtic1ZwWtOWBea9VMW7I,1077
|
|
24
|
+
glymur-0.14.4.dist-info/METADATA,sha256=ZB4eo9kLIQPR7T73ZR0OMN9Bwzmv8yv2c-7HIxPgh50,1325
|
|
25
|
+
glymur-0.14.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
26
|
+
glymur-0.14.4.dist-info/entry_points.txt,sha256=v_9O2V_6M5ir6_nYmtkpgY9QvN1H-CMVg6tKqcUN4v0,133
|
|
27
|
+
glymur-0.14.4.dist-info/top_level.txt,sha256=D0SvtBUoPxOs40OTRW3l-kjGFHM6VrXS8yZPK5Fx2wY,7
|
|
28
|
+
glymur-0.14.4.dist-info/RECORD,,
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
glymur/__init__.py,sha256=8kFoLkxAFhVEsgR0WCEaF0iXE5GZSp47nPlheGMpP-c,625
|
|
2
|
-
glymur/_core_converter.py,sha256=tOCxgbZReS47vyCNrfFYaEM9hM9U6ei-PvQdwFXY5mk,13042
|
|
3
|
-
glymur/_iccprofile.py,sha256=v0nOhJuZsKViBUYCf8TWVJvs1k0vC9PGYdbkEIfGuI4,4156
|
|
4
|
-
glymur/codestream.py,sha256=JQUVS8nENdf-rgMDuGwsrg0UakhN_kIShfZEzIV7IT4,62695
|
|
5
|
-
glymur/command_line.py,sha256=3Wngx3wfAvP2PEf4-XRbmm43Bz8zywIL3Gd-6k-wMvY,11485
|
|
6
|
-
glymur/config.py,sha256=lVunNA-A475BX27L_qmrec_lm1InzHuL4_jkG8v_1FA,4140
|
|
7
|
-
glymur/core.py,sha256=O07TfaRW2YmurkFMiurl0DkDSGB0slDAAzP83K1HPFA,3613
|
|
8
|
-
glymur/jp2box.py,sha256=9tBCbLqqwO-CP587a_dAW88W3MJLJMz-cAyQ_LSUO6A,113852
|
|
9
|
-
glymur/jp2k.py,sha256=Mv6i__DJ_WUTBcAXCP6wYIMBSCmnNL84H6hr0V7jSZo,56892
|
|
10
|
-
glymur/jp2kr.py,sha256=lytdX28iZIq8tyXyAWLR_jUZuO2RsKWSIXKiRpCLaqA,35882
|
|
11
|
-
glymur/jpeg.py,sha256=PSsyv4ZQTMXGQnpX9Y5-JGxHa0t6QZPZvd5BsnOhahQ,5560
|
|
12
|
-
glymur/options.py,sha256=TZApl6r_qCERHSIcTdM0iGvYuQLrZMbOtyFJB7XkvK0,4413
|
|
13
|
-
glymur/tiff.py,sha256=5oBeNwaMgojb0mfZJpk86WYHdrR04QRdfW2QDX1I7CU,29550
|
|
14
|
-
glymur/version.py,sha256=3L27lguMSBql6kEsMAJe1hI61y62l_GFyY5kvpo3bXQ,986
|
|
15
|
-
glymur/data/__init__.py,sha256=n2KZrHV15it7Wu4YCaBLXui1ZleQ30dnZ92dyP6q05k,955
|
|
16
|
-
glymur/data/goodstuff.j2k,sha256=xKQG68KMu33gYjRUDTQvam1Cue2tdio85rNp5J-rYZE,115220
|
|
17
|
-
glymur/data/heliov.jpx,sha256=KXnYdBZgl25jcGLu-m-QfhuP9pqUXV0Hp9HHEdJqr34,1399071
|
|
18
|
-
glymur/data/nemo.jp2,sha256=yJ1NkTEwU0B_gBtAiA1c5hxtGYSJtJgq6cHC2IHpj70,1132373
|
|
19
|
-
glymur/lib/__init__.py,sha256=JnM9oPfcZhBDLKo7_yLS-lIRQ1wXb1N9hKKQ-G7vYVk,127
|
|
20
|
-
glymur/lib/openjp2.py,sha256=0UWPp2mto8G43yRUhGfpcS1RV6l3ac1YQrlVyBhxvjs,44064
|
|
21
|
-
glymur/lib/tiff.py,sha256=t8XfgwX2jX0qSU8RuTkNvWLe2390Bp7TiVlr8K2Ku68,51828
|
|
22
|
-
glymur-0.14.1.post1.dist-info/licenses/LICENSE.txt,sha256=G9pvBgkJdPTtZqQmoRyIgAydtic1ZwWtOWBea9VMW7I,1077
|
|
23
|
-
glymur-0.14.1.post1.dist-info/METADATA,sha256=gDDmtfb6g4Pb4RtwdMTpCzH3XJBfqBtFJW2MB6C9kj8,1280
|
|
24
|
-
glymur-0.14.1.post1.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
|
25
|
-
glymur-0.14.1.post1.dist-info/entry_points.txt,sha256=v_9O2V_6M5ir6_nYmtkpgY9QvN1H-CMVg6tKqcUN4v0,133
|
|
26
|
-
glymur-0.14.1.post1.dist-info/top_level.txt,sha256=D0SvtBUoPxOs40OTRW3l-kjGFHM6VrXS8yZPK5Fx2wY,7
|
|
27
|
-
glymur-0.14.1.post1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|