[GRASS-user] d.out.file format=png file malformed

Anna Petrášová kratochanna at gmail.com
Fri Jul 18 12:00:15 PDT 2014


Hi,


On Fri, Jul 18, 2014 at 1:56 PM, Dave Roberts <
dvrbts at ecology.msu.montana.edu> wrote:

> Friends,
>
>     I'm using GRASS 70-svn on Arch linux to generate figures for a report.
>  The general process is
>
> 1) GRASS - d.out.file format=png
> 2) xfig - import the PNG file, annotate, and export as PDF
> 3) TeX - import the file in a dvipdfm \special
>
>    However, I'm now having problems with non-functional PNG files from
> d.out.file.  Just below is a paste from my console.  You can't see the
> error from inside xfig, but the line just below "xfig" is the stderr output
> from attempting to import demo_png.png.
>
> ***********************************************************************
> GRASS 7.0.svn > d.out.file out=demo_png.png format=png size=800,600
>
>                               Mapset <final> in Location <beartooth>
> GRASS 7.0.svn > xfig
> Warning: translation table syntax error: Missing '(' while parsing action
> sequence
> 'arning: ... found while parsing ':~Ctrl<Key>1: insert-string(1)
> Warning: String to TranslationTable conversion encountered errors
> libpng error: invalid file gamma in png_set_gamma
> ***********************************************************************
>
>    The resulting PNG file will import into Imagemagick OK, and can then be
> exported back out as a PNG file which xfig will accept, so there is a work
> around, but maybe this is easily fixed?  I've had a look at Anna's python
> script but haven't gone into the imported modules.
>

I have never had any problems with exported images from GRASS. d.out.file
uses the same mechanism as when you use the toolbar button in map display.
I tried to get the png into xfig and it didn't complain (xfig version
3.2.5b). Any other image processing tools have problems (e.g. gimp)?

Anna

>
> Thanks, Dave
> --
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> David W. Roberts                                     office 406-994-4548
> Professor and Head                                      FAX 406-994-3190
> Department of Ecology                         email droberts at montana.edu
> Montana State University
> Bozeman, MT 59717-3460
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20140718/f389faa5/attachment.html>


More information about the grass-user mailing list