[GRASS-dev] [GRASS GIS] #3367: g.gui.animation: animated GIF export generates corrupted GIF files

GRASS GIS trac at osgeo.org
Thu Jul 6 06:03:48 PDT 2017


#3367: g.gui.animation: animated GIF export generates corrupted GIF files
-----------------------------+-------------------------
 Reporter:  neteler          |      Owner:  grass-dev@…
     Type:  defect           |     Status:  new
 Priority:  normal           |  Milestone:  7.2.2
Component:  wxGUI            |    Version:  unspecified
 Keywords:  g.gui.animation  |        CPU:  Unspecified
 Platform:  Unspecified      |
-----------------------------+-------------------------
 When exporting an animated GIF, the generated file is corrupted:

 {{{
 # using GRASS 7.2.2svn (nc_climate_spm_2000_2012): >
 g.region raster=2002_10_precip -p

 g.gui.animation `g.list raster pattern="2*_10_precip" sep=comma`
 Default TGIS driver / database set to:
 driver: sqlite
 database: $GISDBASE/$LOCATION_NAME/$MAPSET/tgis/sqlite.db
 WARNING: Temporal database connection defined as:
 /home/mneteler/grassdata/nc_climate_spm_2000_2012/climate_1970_2012/tgis/sqlite.db
          But database file does not exist.
 Creating temporal database:
 /home/mneteler/grassdata/nc_climate_spm_2000_2012/climate_1970_2012/tgis/sqlite.db
 /home/mneteler/software/grass72/dist.x86_64-pc-linux-
 gnu/etc/python/grass/imaging/images2gif.py:344: VisibleDeprecationWarning:
 converting an array with ndim > 0 to an index will result in an error in
 the future
   im2 = im[y0:y1, x0:x1]
 }}}

 (not sure if the warning matters)

 {{{
 ls -la bla.gif
 -rw-r--r-- 1 mneteler mneteler 1561325 Jul  6 14:55 bla.gif

 display bla.gif
 display: corrupt image `bla.gif' @ error/gif.c/ReadGIFImage/1368.
 }}}

 System:
 {{{
 System Info
 GRASS version: 7.2.2svn
 GRASS SVN revision: r71233M
 Build date: 2017-07-03
 Build platform: x86_64-pc-linux-gnu
 GDAL: 2.1.2
 PROJ.4: 4.9.2
 GEOS: 3.5.0
 SQLite: 3.14.2
 Python: 2.7.13
 wxPython: 3.0.2.0
 Platform: Linux-4.11.3-202.fc25.x86_64-x86_64-with-fedora-25-Twenty_Five
 }}}

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3367>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list