[Git][debian-gis-team/glymur][master] 4 commits: New upstream version 0.13.6
Antonio Valentino (@antonio.valentino)
gitlab at salsa.debian.org
Fri Aug 23 07:46:00 BST 2024
Antonio Valentino pushed to branch master at Debian GIS Project / glymur
Commits:
63c38e82 by Antonio Valentino at 2024-08-23T06:22:22+00:00
New upstream version 0.13.6
- - - - -
42ac6478 by Antonio Valentino at 2024-08-23T06:22:33+00:00
Update upstream source from tag 'upstream/0.13.6'
Update to upstream version '0.13.6'
with Debian dir 006031beaef8432d5ca682fba1c42eef0f90e7a6
- - - - -
61e181d1 by Antonio Valentino at 2024-08-23T06:23:02+00:00
New usptream release
- - - - -
30d45e8c by Antonio Valentino at 2024-08-23T06:23:25+00:00
Set distribution to unstable
- - - - -
9 changed files:
- CHANGES.txt
- debian/changelog
- docs/source/conf.py
- docs/source/whatsnew/0.13.rst
- glymur/tiff.py
- glymur/version.py
- setup.cfg
- + tests/data/skimage/moon63.tif
- tests/test_tiff2jp2.py
Changes:
=====================================
CHANGES.txt
=====================================
@@ -1,3 +1,6 @@
+Aug 19, 2024 - v0.13.6
+ Fix tiff2jp2 when tile coverage not square.
+
July 26, 2024 - v0.13.5
Add support for parsing the CAP segment.
End official support for OpenJPEG 2.3.x.
=====================================
debian/changelog
=====================================
@@ -1,3 +1,9 @@
+glymur (0.13.6-1) unstable; urgency=medium
+
+ * New upstream release.
+
+ -- Antonio Valentino <antonio.valentino at tiscali.it> Fri, 23 Aug 2024 06:23:06 +0000
+
glymur (0.13.5-1) unstable; urgency=medium
[ Bas Couwenberg ]
=====================================
docs/source/conf.py
=====================================
@@ -80,7 +80,7 @@ copyright = '2013-2024, John Evans'
# The short X.Y version.
version = '0.13'
# The full version, including alpha/beta/rc tags.
-release = '0.13.5'
+release = '0.13.6'
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
=====================================
docs/source/whatsnew/0.13.rst
=====================================
@@ -2,6 +2,12 @@
Changes in glymur 0.13
######################
+*****************
+Changes in 0.13.6
+*****************
+
+ * Fix tiff2jp2 when tile coverage not square.
+
*****************
Changes in 0.13.5
*****************
=====================================
glymur/tiff.py
=====================================
@@ -862,7 +862,7 @@ class Tiff2Jp2k(object):
partial_jp2_tile_rows = (self.imageheight / jth) != (self.imageheight // jth) # noqa : E501
partial_jp2_tile_cols = (self.imagewidth / jtw) != (self.imagewidth // jtw) # noqa : E501
- num_jp2k_tile_rows = int(np.ceil(self.imagewidth / jtw))
+ num_jp2k_tile_rows = int(np.ceil(self.imageheight / jth))
num_jp2k_tile_cols = int(np.ceil(self.imagewidth / jtw))
jp2k_tile_row = int(np.ceil(jp2k_tile_num // num_jp2k_tile_cols))
=====================================
glymur/version.py
=====================================
@@ -20,7 +20,7 @@ from .lib import tiff
# Do not change the format of this next line! Doing so risks breaking
# setup.py
-version = "0.13.5"
+version = "0.13.6"
version_tuple = parse(version).release
=====================================
setup.cfg
=====================================
@@ -1,6 +1,6 @@
[metadata]
name = Glymur
-version = 0.13.5
+version = 0.13.6
author = 'John Evans'
author_email = "John Evans" <jevans667cc at proton.me>
license = 'MIT'
=====================================
tests/data/skimage/moon63.tif
=====================================
Binary files /dev/null and b/tests/data/skimage/moon63.tif differ
=====================================
tests/test_tiff2jp2.py
=====================================
@@ -43,6 +43,7 @@ class TestSuite(fixtures.TestCommon):
cls.ycbcr_bg = root.joinpath('ycbcr_bg.tif')
cls.ycbcr_stripped = root.joinpath('ycbcr_stripped.tif')
cls.stripped = root.joinpath('stripped.tif')
+ cls.moon63 = root.joinpath('moon63.tif')
test_tiff_dir = tempfile.mkdtemp()
cls.test_tiff_path = pathlib.Path(test_tiff_dir)
@@ -1919,3 +1920,26 @@ class TestSuite(fixtures.TestCommon):
expected = expected[:, :, :3]
np.testing.assert_array_equal(actual, expected)
+
+ def test_unevenly_tiled(self):
+ """
+ SCENARIO: Convert monochromatic TIFF file to JP2. The TIFF is tiled
+ 2x3, and the 2nd row of tiles consists of partial tiles.
+
+ EXPECTED RESULT: The JP2 file validates
+ """
+ with Tiff2Jp2k(
+ self.moon63, self.temp_jp2_filename, tilesize=(32, 32)
+ ) as j:
+ j.run()
+
+ jp2 = Jp2k(self.temp_jp2_filename)
+ actual = jp2[:]
+ expected = skimage.io.imread(self.moon63)
+ np.testing.assert_array_equal(actual, expected)
+
+ c = jp2.get_codestream()
+ self.assertEqual(c.segment[1].xsiz, 96)
+ self.assertEqual(c.segment[1].ysiz, 63)
+ self.assertEqual(c.segment[1].xtsiz, 32)
+ self.assertEqual(c.segment[1].ytsiz, 32)
View it on GitLab: https://salsa.debian.org/debian-gis-team/glymur/-/compare/043a6fb1ab80594c7879823e07d14ce0168ccece...30d45e8c57d276f07cc65c567d79230389aef5d3
--
View it on GitLab: https://salsa.debian.org/debian-gis-team/glymur/-/compare/043a6fb1ab80594c7879823e07d14ce0168ccece...30d45e8c57d276f07cc65c567d79230389aef5d3
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20240823/51fad7d3/attachment-0001.htm>
More information about the Pkg-grass-devel
mailing list