Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: gavinmc42 on March 16, 2015, 06:56:41 PM

Title: SVG image without X + GUI
Post by: gavinmc42 on March 16, 2015, 06:56:41 PM
I have had some success using shell script generated graphics inserted into html webpages.
Been doing sensor data plotting with shell svg.

Now I am wondering if I can use the same process of a shell generated svg image and displaying it on the screen through the Linux framebuffer.

No fbi.tcz in repository, not sure yet if fbi can handle svg images anyway.
SDL.tcz? needs a wrapper to handle SVG files from shell scripts?
librsvg.tcz has a bunch of dependencies.
Cairo? 500kB , not small.
Anything I miss?

A shell script generated SVG based GUI with plotting, anything out there?



Title: Re: SVG image without X + GUI
Post by: gavinmc42 on March 16, 2015, 10:17:23 PM
Got an idea.

Been looking at framebuffer stuff

cat /dev/fb0 > screen.raw    captures the framebuffer
therefore cat screen.raw > /dev/fb0   writes to frame buffer

Use shell script to make file.svg
Then use ImageMagik to convert .svg to .raw then > /dev/fb0

Looks to be a 2.6MB raw file for 1280 x 1024 16bit colour.
Title: Re: SVG image without X + GUI
Post by: curaga on March 17, 2015, 02:05:29 AM
I don't think any FB viewer supports SVG, so you'd need to convert to an image first, for example with rsvg-convert. Using a viewer would be a tad more user friendly, with zooming/redraw/control options than overwriting the fb.
Title: Re: SVG image without X + GUI
Post by: gavinmc42 on March 17, 2015, 05:13:10 PM
Hi Curaga,

I want to do a GUI with plotting without X with minimal libraries.
Can already do webpages with shell script generated svg plots.

Now trying to do SVG based GUI to framebuffer.
Other options are SDL etc, OpenVG would be nice.

rsvg looks like it might work but you need a bunch of dependencies.
librsvg, cairo, ImageMagik ditto
Doing everything behind a firewall so I have to manually install tcz's.

Hmm, command line framebuffer based html5 web browser?
Google -> Netsurf?