<div dir="ltr">Hi,<br><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jul 18, 2014 at 1:56 PM, Dave Roberts <span dir="ltr"><<a href="mailto:dvrbts@ecology.msu.montana.edu" target="_blank">dvrbts@ecology.msu.montana.edu</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Friends,<br>
<br>
    I'm using GRASS 70-svn on Arch linux to generate figures for a report.  The general process is<br>
<br>
1) GRASS - d.out.file format=png<br>
2) xfig - import the PNG file, annotate, and export as PDF<br>
3) TeX - import the file in a dvipdfm \special<br>
<br>
   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.<br>


<br>
******************************<u></u>******************************<u></u>***********<br>
GRASS 7.0.svn > d.out.file out=demo_png.png format=png size=800,600<br>
<br>
                              Mapset <final> in Location <beartooth><br>
GRASS 7.0.svn > xfig<br>
Warning: translation table syntax error: Missing '(' while parsing action sequence<br>
'arning: ... found while parsing ':~Ctrl<Key>1: insert-string(1)<br>
Warning: String to TranslationTable conversion encountered errors<br>
libpng error: invalid file gamma in png_set_gamma<br>
******************************<u></u>******************************<u></u>***********<br>
<br>
   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.<br>

</blockquote><div><br></div><div>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)?</div>

<div><br></div><div>Anna</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Thanks, Dave<span class="HOEnZb"><font color="#888888"><br>
-- <br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<u></u>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<u></u>~~~~~~~~~~~~<br>
David W. Roberts                                     office <a href="tel:406-994-4548" value="+14069944548" target="_blank">406-994-4548</a><br>
Professor and Head                                      FAX <a href="tel:406-994-3190" value="+14069943190" target="_blank">406-994-3190</a><br>
Department of Ecology                         email <a href="mailto:droberts@montana.edu" target="_blank">droberts@montana.edu</a><br>
Montana State University<br>
Bozeman, MT 59717-3460<br>
______________________________<u></u>_________________<br>
grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org" target="_blank">grass-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/grass-user</a><br>
</font></span></blockquote></div><br></div></div>