[GRASS-user] d.out.file format=png file malformed
Dave Roberts
dvrbts at ecology.msu.montana.edu
Fri Jul 18 13:09:33 PDT 2014
Hi Anna,
I hadn't tried gimp yet so I installed it to see. Works fine in
both gimp and Imagemagick, so I guess it's an xfig thing. I'm running
xfig 3.2.5c which is only slightly newer than yours, but maybe that
broke it.
Thanks, Dave
On 07/18/2014 01:00 PM, Anna Petrášová wrote:
> Hi,
>
>
> On Fri, Jul 18, 2014 at 1:56 PM, Dave Roberts
> <dvrbts at ecology.msu.montana.edu <mailto: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 <tel:406-994-4548>
> Professor and Head FAX
> 406-994-3190 <tel:406-994-3190>
> Department of Ecology email
> droberts at montana.edu <mailto:droberts at montana.edu>
> Montana State University
> Bozeman, MT 59717-3460
> _________________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org <mailto:grass-user at lists.osgeo.org>
> http://lists.osgeo.org/__mailman/listinfo/grass-user
> <http://lists.osgeo.org/mailman/listinfo/grass-user>
>
>
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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
More information about the grass-user
mailing list