WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: SVG image without X + GUI  (Read 3104 times)

Offline gavinmc42

  • Sr. Member
  • ****
  • Posts: 301
SVG image without X + GUI
« on: March 16, 2015, 09: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?




Offline gavinmc42

  • Sr. Member
  • ****
  • Posts: 301
Re: SVG image without X + GUI
« Reply #1 on: March 17, 2015, 01:17:23 AM »
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.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11049
Re: SVG image without X + GUI
« Reply #2 on: March 17, 2015, 05: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.
The only barriers that can stop you are the ones you create yourself.

Offline gavinmc42

  • Sr. Member
  • ****
  • Posts: 301
Re: SVG image without X + GUI
« Reply #3 on: March 17, 2015, 08: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?