Linux image decoder/encoder without X dependencies

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
infratec
Always Here
Always Here
Posts: 7588
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Linux image decoder/encoder without X dependencies

Post by infratec »

Hi,

I was running in a big trouble when writing a tool which includes snmp values in a png picture.
Target was a simple console only debian server with apache.

First Tool replaces text variables in SVG files. So: no problem
But the filesize of the SVG was to high (392k and that every 10 seconds)

So I switched to PNG.
(only 28k in windows and 40k in Linux due to a bug in Linux)

But, bad surprise, my console programm than needs a X display.
It has no text or other outputs at all, it only loads and saves imagefiles.

The only solution was to install Xvfb.

So please:

Remove this dependencies from the Encoder/Decoder stuff.

P.S.: Here you can see the result http://mcz.ednt.eu/produktlinien/live-system/
The temperatures and the state of the oven are read out with snmp and than drawed in the picture.
User avatar
Didelphodon
PureBasic Expert
PureBasic Expert
Posts: 450
Joined: Sat Dec 18, 2004 11:56 am
Location: Vienna - Austria
Contact:

Re: Linux image decoder/encoder without X dependencies

Post by Didelphodon »

+1, same is true for the 2d drawing commands
Go, tell it on the mountains.
Post Reply