[GRASS-dev] Rendering from command line does not respect size

Vaclav Petras wenzeslaus at gmail.com
Mon Mar 28 12:12:21 PDT 2016


On Mon, Mar 28, 2016 at 2:53 PM, Martin Landa <landa.martin at gmail.com>
wrote:

> 2015-05-04 2:47 GMT+02:00 Vaclav Petras <wenzeslaus at gmail.com>:
> > d.mon png width=1500 height=1350
> > d.rast elevation
> >
> > ERROR: PNG: input file has incorrect dimensions: expected: 1500x1350 got:
> >        640x480
>
> I cannot reproduce this behavior:
>
> d.mon png w=1000 h=500 out=/tmp/png.png
>
> d.rast dmt --v
> ...
> png: image size 1000x500
>

Works with output.

> d.mon png width=1500 height=1350 output=/tmp/png.png
> d.rast elevation --v
Using display driver <png>...
png: truecolor status enabled
png: collecting to file '/tmp/png.png'
png: image size 1500x1350

But using the default file name it fails:

> d.mon png width=1500 height=1350
> d.rast elevation --v
Using display driver <png>...
png: truecolor status enabled
png: collecting to file '/.../map.png'
png: image size 1500x1350
ERROR: PNG: input file has incorrect dimensions: expected: 1500x1350 got:
       640x480

When I use file command:

> ls
[nothing]
> d.mon png width=1500 height=1350
> file map.png
map.png: PNG image data, 640 x 480, 8-bit/color RGBA, non-interlaced


>
> Probably map.png has been created by cairo driver? Ma



No sure how this works but I'm not starting cairo at the same time.

Thanks for getting back to this,
Vaclav
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20160328/619323f5/attachment.html>


More information about the grass-dev mailing list