[Git][debian-gis-team/glymur][upstream] New upstream version 0.11.4
Antonio Valentino (@antonio.valentino)
gitlab at salsa.debian.org
Sun Aug 21 08:17:33 BST 2022
Antonio Valentino pushed to branch upstream at Debian GIS Project / glymur
Commits:
b16890af by Antonio Valentino at 2022-08-21T07:04:32+00:00
New upstream version 0.11.4
- - - - -
6 changed files:
- CHANGES.txt
- docs/source/whatsnew/0.11.rst
- glymur/tiff.py
- glymur/version.py
- setup.cfg
- tests/test_tiff2jp2.py
Changes:
=====================================
CHANGES.txt
=====================================
@@ -1,3 +1,6 @@
+August 18, 2022 - v0.11.4
+ Fix ResolutionBox with tiff2jp2
+
August 16, 2022 - v0.11.3
Fix placement of Resolutionbox
=====================================
docs/source/whatsnew/0.11.rst
=====================================
@@ -2,10 +2,15 @@
Changes in glymur 0.11
######################
+*****************
+Changes in 0.11.4
+*****************
+ * Fix ResolutionBox with tiff2jp2.
+
*****************
Changes in 0.11.3
*****************
- * Fix placement of ResolutionBox
+ * Fix placement of ResolutionBox.
*****************
Changes in 0.11.2
=====================================
glymur/tiff.py
=====================================
@@ -615,6 +615,7 @@ class Tiff2Jp2k(object):
self._write_rgba_single_tile(
photo, imagewidth, imageheight, spp, jp2
)
+ jp2.finalize(force_parse=True)
elif isTiled and self.tilesize is not None:
=====================================
glymur/version.py
=====================================
@@ -21,7 +21,7 @@ from .lib import tiff
# Do not change the format of this next line! Doing so risks breaking
# setup.py
-version = "0.11.3"
+version = "0.11.4"
version_tuple = parse(version).release
=====================================
setup.cfg
=====================================
@@ -1,6 +1,6 @@
[metadata]
name = Glymur
-version = 0.11.3
+version = 0.11.4
author = 'John Evans'
author_email = "John Evans" <john.g.evans.ne at gmail.com>
license = 'MIT'
=====================================
tests/test_tiff2jp2.py
=====================================
@@ -1905,11 +1905,45 @@ class TestSuiteNoScikitImage(fixtures.TestCommon):
j.box[-1].data.getroot().values(), ['Public XMP Toolkit Core 3.5']
)
- def test_commandline_capture_display_resolution(self):
+ def test_commandline__capture_display_resolution__no_tilesize(self):
"""
- Scenario: patch sys such that we can run the command line tiff2jp2
- script. Supply the --capture-resolution and --display-resolution
- arguments.
+ Scenario: patch sys such that we can run the command
+ line tiff2jp2 script. Supply the --capture-resolution and
+ --display-resolution arguments.
+
+ Expected Result: The last box is a ResolutionBox.
+ """
+ vresc, hresc = 0.1, 0.2
+ vresd, hresd = 0.3, 0.4
+
+ sys.argv = [
+ '', str(self.exif_tiff), str(self.temp_jp2_filename),
+ '--capture-resolution', str(vresc), str(hresc),
+ '--display-resolution', str(vresd), str(hresd),
+ ]
+ command_line.tiff2jp2()
+
+ j = Jp2k(self.temp_jp2_filename)
+
+ # the resolution superbox is appended in the jp2 header box.
+ # the exit uuid comes later
+ self.assertEqual(j.box[-1].box_id, 'uuid')
+
+ self.assertEqual(j.box[2].box[2].box_id, 'res ')
+
+ self.assertEqual(j.box[2].box[2].box[0].box_id, 'resc')
+ self.assertEqual(j.box[2].box[2].box[0].vertical_resolution, vresc)
+ self.assertEqual(j.box[2].box[2].box[0].horizontal_resolution, hresc)
+
+ self.assertEqual(j.box[2].box[2].box[1].box_id, 'resd')
+ self.assertEqual(j.box[2].box[2].box[1].vertical_resolution, vresd)
+ self.assertEqual(j.box[2].box[2].box[1].horizontal_resolution, hresd)
+
+ def test_commandline__capture_display_resolution__tilesize(self):
+ """
+ Scenario: patch sys such that we can run the command line
+ tiff2jp2 script. Supply the --tilesize, --capture-resolution
+ and --display-resolution arguments.
Expected Result: The last box is a ResolutionBox.
"""
View it on GitLab: https://salsa.debian.org/debian-gis-team/glymur/-/commit/b16890afa89bcba7f7f803cac5f2409423a925dc
--
View it on GitLab: https://salsa.debian.org/debian-gis-team/glymur/-/commit/b16890afa89bcba7f7f803cac5f2409423a925dc
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/20220821/7279f5c0/attachment-0001.htm>
More information about the Pkg-grass-devel
mailing list