[Git][debian-gis-team/glymur][master] 4 commits: New upstream version 0.11.4
Antonio Valentino (@antonio.valentino)
gitlab at salsa.debian.org
Sun Aug 21 08:17:24 BST 2022
Antonio Valentino pushed to branch master at Debian GIS Project / glymur
Commits:
b16890af by Antonio Valentino at 2022-08-21T07:04:32+00:00
New upstream version 0.11.4
- - - - -
e130d42c by Antonio Valentino at 2022-08-21T07:04:36+00:00
Update upstream source from tag 'upstream/0.11.4'
Update to upstream version '0.11.4'
with Debian dir af1aff18efed9dd7b67880cd5cb623ee84ac69e5
- - - - -
e11bb65e by Antonio Valentino at 2022-08-21T07:05:16+00:00
New upstream release
- - - - -
dc355b91 by Antonio Valentino at 2022-08-21T07:06:03+00:00
Set distribution to unstable
- - - - -
7 changed files:
- CHANGES.txt
- debian/changelog
- 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
=====================================
debian/changelog
=====================================
@@ -1,3 +1,9 @@
+glymur (0.11.4-1) unstable; urgency=medium
+
+ * New usptream release.
+
+ -- Antonio Valentino <antonio.valentino at tiscali.it> Sun, 21 Aug 2022 07:05:48 +0000
+
glymur (0.11.3-1) unstable; urgency=medium
* New upstream release.
=====================================
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/-/compare/b9830622e8e35ee68230ce3669e55f84c7791c5b...dc355b91aee0c50b39b1fd63699b6eccd91d06f7
--
View it on GitLab: https://salsa.debian.org/debian-gis-team/glymur/-/compare/b9830622e8e35ee68230ce3669e55f84c7791c5b...dc355b91aee0c50b39b1fd63699b6eccd91d06f7
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/615e2204/attachment-0001.htm>
More information about the Pkg-grass-devel
mailing list