Warrick
On linux you can use xvfb-run to run the window so you don't see it.
xvfb-run -a --server-args "-screen 0 640x480x24" thecommand
Alternatively, you could use the embedding interface from python
import veusz.embed as veusz
e = veusz.Embedded(hidden=True)
e.Load('in.vsz')
e.Export('out.png', dpi=300)
Cheers
Jeremy
On 29/09/16 10:55, Warrick Ball wrote:
Jeremy,
Thanks! That's good enough for now. Is there any way to suppress the
window that pops up? I tried adding the --quiet flag to no avail.
Cheers,
Warrick
Warrick Ball
Postdoc, Institut für Astrophysik Göttingen
wb...@astro.physik.uni-goettingen.de
+49 (0) 551 39 5069
On Wed, 28 Sep 2016, Jeremy Sanders wrote:
Dear Warrick
On 28/09/16 09:40, Warrick Ball wrote:
I'm finding that the PNG exported this way is much lower resolution (100
DPI, I think) whereas I've tried to set the default to 300. i.e. If I
open a new Veusz window and hit File/Export, the DPI in the dialog box
is already set to 300 DPI.
Can I demand 300 DPI from the command line?
It would be a good idea to fix this to use the default or last-used
settings, or add options to the command line. It would be handy to
have a bug to keep track of this.
I think a workaround is to add some text to the vsz file such as
Export('test.png', dpi=300)
import sys
sys.exit()
And do
veusz --unsafe-mode input.vsz
e.g.
cp input.vsz temp.vsz
cat >> temp.vsz <
___
Veusz-discuss mailing list
Veusz-discuss@gna.org
https://mail.gna.org/listinfo/veusz-discuss