[GRASS-SVN] r71243 - grass/trunk/lib/python/imaging

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Jul 8 06:36:40 PDT 2017


Author: annakrat
Date: 2017-07-08 06:36:39 -0700 (Sat, 08 Jul 2017)
New Revision: 71243

Modified:
   grass/trunk/lib/python/imaging/images2gif.py
Log:
pythonlib: fix #3367 - creating gif files

Modified: grass/trunk/lib/python/imaging/images2gif.py
===================================================================
--- grass/trunk/lib/python/imaging/images2gif.py	2017-07-05 06:46:55 UTC (rev 71242)
+++ grass/trunk/lib/python/imaging/images2gif.py	2017-07-08 13:36:39 UTC (rev 71243)
@@ -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