[GRASS-SVN] r71481 - grass/branches/releasebranch_7_2/lib/python/imaging
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Sep 8 05:51:07 PDT 2017
Author: martinl
Date: 2017-09-08 05:51:07 -0700 (Fri, 08 Sep 2017)
New Revision: 71481
Modified:
grass/branches/releasebranch_7_2/lib/python/imaging/images2gif.py
Log:
pythonlib: see #3367 - creating gif files (merge r71243 from trunk)
Modified: grass/branches/releasebranch_7_2/lib/python/imaging/images2gif.py
===================================================================
--- grass/branches/releasebranch_7_2/lib/python/imaging/images2gif.py 2017-09-08 06:35:29 UTC (rev 71480)
+++ grass/branches/releasebranch_7_2/lib/python/imaging/images2gif.py 2017-09-08 12:51:07 UTC (rev 71481)
@@ -334,8 +334,8 @@
Y = np.argwhere(diff.sum(1))
# Get rect coordinates
if X.size and Y.size:
- x0, x1 = X[0], X[-1] + 1
- y0, y1 = Y[0], Y[-1] + 1
+ x0, x1 = int(X[0]), int(X[-1] + 1)
+ y0, y1 = int(Y[0]), int(Y[-1] + 1)
else: # No change ... make it minimal
x0, x1 = 0, 2
y0, y1 = 0, 2
More information about the grass-commit
mailing list