El 8/3/22 a las 07:04, echicken escribi¢:
> Re: xbin
> By: MRO to Digital Man on Mon Mar 07 2022 21:28:46
>
> MR> okay i used windows paint and saved as monocrome.
>
> MR> i know years ago deuce was working on displaying image files like jpgs but
> MR> they were in a separate window. it would be nice if syncterm could display
> MR> a png in the client the way it can display these xb files.
>
> MR> looks like this format requires a lot of image tweaking and has a lot of
> MR> limitations. that's probably why it wasnt widely used.
>
> He added support for sixel around the same time. I don't remember the limitations of the format, but you get colours and decent looking images. Should be possible to find conversion utilities online.
>
> I think there's a demo of it on my BBS immediately upon connection if you're using a high enough SyncTERM version. (An image will show up before the login menu appears.)
>
> The display function I'm using is like this, where 'fn' is a string, path to a sixel file:
>
> load('cterm_lib.js');
>
> function show_sixel(fn) {
> if (console.cterm_version >= 1189) {
> var image = new File(fn);
> if (image.exists) {
> if (image.open("rb", true)) {
> var readlen = console.output_buffer_level + console.output_buffer_space;
> readlen /= 2;
> console.clear();
> while (!image.eof) {
> var imagedata=image.read(readlen);
> while (console.output_buffer_space < imagedata.length) {
> mswait(1);
> }
> console.write(imagedata);
> }
> image.close();
> return true;
> }
> }
> }
> return false;
> }
>
very nice! i see you color image from your bbs. I will try on mine!
---
þ Synchronet þ Dock Sud BBS TLD 24 HS - bbs.docksud.com.ar
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
|