Yes, if you include a <canvas> element and call a JS function with the id
of the canvas and the file to display. I only need to clean up the code!
On Thu, Oct 10, 2013 at 09:40:16PM +0200, Sampsa Laine wrote:
Cool so it would be possible to include the JS on an arbitrary page and display SIXEL
graphics using it?
sampsa <sampsa at mac.com>
mobile +358 40 7208932
On 10 Oct 2013, at 20:25, Erik Olofsen <e.olofsen at xs4all.nl> wrote:
Perhaps I made a few improvements!
The buttons load a real sixel file instead of a Javascript string.
http://rullf2.xs4all.nl/sg/sg.html
On Wed, Oct 09, 2013 at 10:17:28PM +0200, Sampsa Laine wrote:
I meant in a browser, so you'd have a script that you can call to display SIXEL
images
stored on a server, like <IMG> tags but using JS function calls instead :)
sampsa <sampsa at mac.com>
mobile +358 40 7208932
On 9 Oct 2013, at 22:15, Erik Olofsen <e.olofsen at xs4all.nl> wrote:
I use SpiderMonkey for stand-alone Javascript - adding a ppm output
function would not be difficult!
On Wed, Oct 09, 2013 at 10:12:36PM +0200, Sampsa Laine wrote:
A JS library that could display SIXEL images would be pretty awesome though :)
sampsa <sampsa at mac.com>
mobile +358 40 7208932
On 9 Oct 2013, at 22:11, Erik Olofsen <e.olofsen at xs4all.nl> wrote:
With a little effort, I could write a tool to convert sixel to ppm...
Perhaps in C, so that it would work as a foreign command under VMS.
A plugin would be more difficult...
On Wed, Oct 09, 2013 at 07:32:48PM +0200, Sampsa Laine wrote:
That's awesome!
I wonder if we could turn this into a SIXEL decoding plugin for websites somehow..
So you could have a whole bunch of SIXEL images on a website, an INDEX.HTML that imports
this javascript and then displays the images?
Because I haven't found any utilities to convert images FROM sixel to other formats,
just one to convert netpbm -> sixel.
sampsa <sampsa at mac.com>
mobile +358 40 7208932
On 9 Oct 2013, at 19:28, Erik Olofsen <e.olofsen at xs4all.nl> wrote:
Hi Sampsa,
At
http://rullf2.xs4all.nl/sg/sg.html
type
js> load('monkey.js')
js> display(s$)
It needs 'continue script' once or twice.
:)
Erik
On Tue, Oct 08, 2013 at 04:06:36PM +0200, Sampsa Laine wrote:
On 8 Oct 2013, at 16:03, Erik Olofsen <e.olofsen at xs4all.nl> wrote:
Hi all,
For those interested in Sixels, I ported the code (quick and dirty)
from
ftp://ftp.cs.utk.edu/pub/shuford/terminal/all_about_sixels.txt
to Javascript and combined it with Flot and a JQuery terminal:
http://rullf2.xs4all.nl/sg/sg.html
You then get a Javascript terminal, with a display function; some examples:
js> example$
js> display(example$)
js> display(Array(5).join('CA at ACGOG'))
js> display('HECNET')
and
js> display(digital$)
Considering the run time to display the latter image, photos should
perhaps not be too detailed...
Cool - any change you could add my logo (B&W picture of angry monkey from Family
Guy)?
That would totally make my day.