The mod requires SyncTERM. If a user runs it in a terminal other than SyncTERM, it offers a polite error message and quits.
Actually, it also works on MagiTerm :) I was trying it out earlier. I did notice some differences when comparing the two.
* Syncterm displays the sixel while loading it, whereas magiterm waits for
it to load before displaying it.
* Syncterm moves the cursor to the end of the sixel image, magiterm the
cursor stays where it was when sending the sixel.
I'm guessing you're scaling images to fit to the screen with image magick as well as converting them? If so perhaps that could be an option, or just scale so the width fits?
Syncterm / Magiterm both scroll sixel images that
are to high for the screen.
Anyway, cool mod & well done :)
That's interesting, because for me scrolling back in SyncTerm seems to destroy the sixel image; it just disappears completely. Maybe I'm doing something wrong?
I spent the last couple days putting together a sixel image browser in Javascript. It lists a menu of directories containing image files.
When the user selects one, it calls Imagemagick to convert the
selected image to sixel format, and then displays the resulting sixel
to the user. Imagemagick conversion is pretty quick, depending on the
size and complexity of the image being converted.
I spent the last couple days putting together a sixel image browser in Javascript. It lists a menu of directories containing image files. When the user selects one, it calls Imagemagick to convert the selected image to sixel format, and then displays the resulting sixel to the user.
Re: Sixel Gallery
By: Codefenix to All on Mon Jun 20 2022 09:54 pm
I spent the last couple days putting together a sixel image browser in Javascript. It lists a menu of directories containing image files. When the user selects one, it calls Imagemagick to convert the selected image to sixel format, and then displays the resulting sixel to the user.
I tweaked my Sixel Gallery script a bit, adding an optional image path argument. If used, simply displays the specified image converted to sixel and ends. Using this small mod, I set up GIF, JPG, PNG, and BMP as Viewable File Types in SCFG. So now whenever someone browses directories containing images (e.g.: GIFs Galore CD-ROM), if they go into Extended Info for any image file and hit V to view it, they are shown a sixel preview of the image.
This same mod can be used in ansiview.js for artpacks containing image formats. I modded mine here so it shows a sixel version of any non-ANSI art file.
That's really cool! Care to share those mods?
This same mod can be used in ansiview.js for artpacks containing image formats. I modded mine here so it shows a sixel version of any non-ANSI art file.
Sounds like something that could or should be added to gitlab so others have it available if they want to use it. Maybe discuss with echicken since I believe he wrote/maintains ansiview.
Re: Sixel Gallery - Viewable File Mod
By: Nelgin to Codefenix on Wed Feb 08 2023 23:48:16
Sounds like something that could or should be added to gitlab so
others have it available if they want to use it. Maybe discuss
with echicken since I believe he wrote/maintains ansiview.
I have zero interest in it at the moment, so go nuts. :D
Sysop: | CyberNix |
---|---|
Location: | London, UK |
Users: | 18 |
Nodes: | 10 (0 / 10) |
Uptime: | 53:11:10 |
Calls: | 819 |
Files: | 3,532 |
Messages: | 556,923 |