Batch image generation

62 views
Skip to first unread message

tsl

unread,
Nov 4, 2011, 10:33:34 AM11/4/11
to xaos-users
Hi

Is there any possibility to render fractal, save it to the file
(as .png) and quit app. I need to generate bunch of julias on specific
seeds.
XaoS on 3.5 on Windows 7 and Ubuntu 10.10 as well.

Trying to do this from command line:
xaos -julia on -juliaseed -1 0.2505 -size 750x500 -view 0 0 3 3 -anti
-truecolor -outcoloring 9 -saveimg aaaaa.png -quit
but this hangs. Without '-quit' option picture is generated but
obviously app doesn't quit.

Trying from pipe:
cat s.txt | xaos -pipe -
where s.txt consist:
(initstate)
(julia #t)
(juliaseed -1 0.2505)
(truecolor #t)
(outcoloring 9)
(wait)
(saveimg 'a.png)
(quit)

Without any effect. File is not saving. I got info that saveimg needs
a String as a parameter.

Options:
- (anti #t) - makes segfault
- (size ...) - is unknown

What is wrong? Is it possible to make batch image production at all?

Regards, Tomasz

dot dot

unread,
Nov 4, 2011, 4:16:17 PM11/4/11
to xaos-...@googlegroups.com
You could do it in a primitive way: kill -s `pidof xaos`. Maybe its too dumb for what you want


--
You received this message because you are subscribed to the Google Groups "xaos-users" group.
To post to this group, send email to xaos-...@googlegroups.com.
To unsubscribe from this group, send email to xaos-users+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/xaos-users?hl=en.


ciotog

unread,
Nov 4, 2011, 5:31:39 PM11/4/11
to xaos-users
On Nov 4, 10:33 am, tsl <tomek...@gmail.com> wrote:
> Hi
>
> Is there any possibility to render fractal, save it to the file
> (as .png) and quit app. I need to generate bunch of julias on specific
> seeds.
> XaoS on 3.5 on Windows 7 and Ubuntu 10.10 as well.
>
> Trying to do this from command line:
>  xaos -julia on -juliaseed -1 0.2505 -size 750x500 -view 0 0 3 3 -anti
> -truecolor -outcoloring 9 -saveimg aaaaa.png -quit
> but this hangs. Without '-quit' option picture is generated but
> obviously app doesn't quit.

This isn't exactly ideal, but it works:
( xaos -julia on -juliaseed -1 0.2505 -size 750x500 -view 0 0 3 3 -
anti -truecolor -outcoloring 9 -saveimg aaaab.png ) & PID=$! ; sleep
1 ; kill $PID

The sleep gives the fractal a chance to render, and for some reason
xaos needs to be launched in a subshell for the kill to work.

--
Chris Craig

Chris Craig

unread,
Nov 4, 2011, 5:19:41 PM11/4/11
to xaos-...@googlegroups.com, tsl
On 11/04/2011 10:33 AM, tsl wrote:
> Hi
>
> Is there any possibility to render fractal, save it to the file
> (as .png) and quit app. I need to generate bunch of julias on specific
> seeds.
> XaoS on 3.5 on Windows 7 and Ubuntu 10.10 as well.
>
> Trying to do this from command line:
> xaos -julia on -juliaseed -1 0.2505 -size 750x500 -view 0 0 3 3 -anti
> -truecolor -outcoloring 9 -saveimg aaaaa.png -quit
> but this hangs. Without '-quit' option picture is generated but
> obviously app doesn't quit.

This isn't exactly ideal, but it works (all on one line):
( xaos -julia on -juliaseed -1 0.2505 -size 750x500 -view 0 0 3 3 -anti

Reply all
Reply to author
Forward
0 new messages