• Sixel Gallery

    From Codefenix@VERT/CONCHAOS to All on Monday, June 20, 2022 21:54:15
    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.

    The mod requires SyncTERM. If a user runs it in a terminal other than SyncTERM, it offers a polite error message and quits.

    For now I have it set up on my board to browse through stuff like the GIFs Galore CD and the Earth Science pictures of the day from fsxNet. So now users needn't necessarily download files from the board in order to view them.

    I expect I'll spend more time giving it some more polish, but it's available in my doors menu if anyone wants to come try it out.

    |01<|09co|03d|11e|15ƒ|11e|03n|09ix|01>|07

    ---
    ■ Synchronet ■ -=[ conchaos.synchro.net | ConstructiveChaos BBS ]=-
  • From Apam@VERT/POSITRON to Codefenix on Tuesday, June 21, 2022 14:52:01
    Re: Sixel Gallery
    By: Codefenix to All on Mon Jun 20 2022 09:54 pm

    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.

    As for width, Syncterm doesn't do any scaling / scrolling (as far as I can tell) Magiterm will scale images wider than the screen so they fit width ways.

    Anyway, cool mod & well done :)

    Andrew

    ---
    ■ Synchronet ■ The Positronic Brain - positronicbrain.net:11892
  • From Codefenix@VERT/CONCHAOS to Apam on Tuesday, June 21, 2022 09:12:21
    Re: Sixel Gallery
    By: Apam to Codefenix on Tue Jun 21 2022 02:52 pm

    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.

    Nice to know it also works in MagiTerm! I didn't realize MagiTerm sent version info to SBBS like SyncTerm does. I'll amend my message based on this.

    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?

    That's correct, I'm including scaling in the convert call because I wanted to ensure the entire image would fit in the terminal window. I did consider making the scaling optional, so maybe an enhancement for later.

    Syncterm / Magiterm both scroll sixel images that
    are to high for the screen.

    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?

    Anyway, cool mod & well done :)

    Much appreciated! Thanks for checking it out and sharing your findings.

    |01<|09co|03d|11e|15ƒ|11e|03n|09ix|01>|07

    ---
    ■ Synchronet ■ -=[ conchaos.synchro.net | ConstructiveChaos BBS ]=-
  • From Apam@VERT/POSITRON to Codefenix on Wednesday, June 22, 2022 13:03:00
    Re: Sixel Gallery
    By: Codefenix to Apam on Tue Jun 21 2022 09:12 am

    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?

    Oh, sorry. yes scrolling back destroys the image. I just mean they scroll down as they are shown, rather than get cut off at the bottom.

    Andrew

    ---
    ■ Synchronet ■ The Positronic Brain - positronicbrain.net:11892
  • From Nelgin@VERT/EOTLBBS to Codefenix on Wednesday, June 22, 2022 03:10:57
    On Mon, 20 Jun 2022 21:54:15 -0400
    "Codefenix" <codefenix@VERT/CONCHAOS> wrote:

    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.

    Want!! Got some ideas and could put it to good use! :)
    --
    End Of The Line BBS - Plano, TX
    telnet endofthelinebbs.com 23
    ---
    ■ Synchronet ■ End Of The Line BBS - endofthelinebbs.com
  • From Codefenix@VERT/CONCHAOS to All on Wednesday, February 08, 2023 09:13:23
    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.

    |01<|09co|03d|11e|15ƒ|11e|03n|09ix|01>|07
    ---
    ■ Synchronet ■ -=[ ConstructiveChaos BBS | conchaos.synchro.net ]=-
  • From Digital Man@VERT to Codefenix on Wednesday, February 08, 2023 10:16:04
    Re: Sixel Gallery - Viewable File Mod
    By: Codefenix to All on Wed Feb 08 2023 09:13 am

    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?
    --
    digital man (rob)

    Breaking Bad quote #12:
    [Walt] Looks like Keith Richards with a glass a warm milk! - Hank Schrader Norco, CA WX: 65.6°F, 28.0% humidity, 0 mph ENE wind, 0.00 inches rain/24hrs ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Codefenix@VERT/CONCHAOS to Digital Man on Wednesday, February 08, 2023 21:13:15
    Re: Sixel Gallery - Viewable File Mod
    By: Digital Man to Codefenix on Wed Feb 08 2023 10:16 am

    That's really cool! Care to share those mods?

    Gladly! I just uploaded sixelgallery.js to Vert.

    Hopefully my readme.txt makes sense. Let me know if any issues.

    |01<|09co|03d|11e|15ƒ|11e|03n|09ix|01>|07
    ---
    ■ Synchronet ■ -=[ ConstructiveChaos BBS | conchaos.synchro.net ]=-
  • From Nelgin@VERT/EOTLBBS to Codefenix on Wednesday, February 08, 2023 23:48:16
    Re: Sixel Gallery - Viewable File Mod
    By: Codefenix to All on Wed Feb 08 2023 09:13:23

    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.
    ---
    ■ Synchronet ■ End Of The Line BBS - endofthelinebbs.com
  • From echicken@VERT/ECBBS to Nelgin on Thursday, February 09, 2023 16:04:49
    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

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com
    ---
    ■ Synchronet ■ electronic chicken bbs - bbs.electronicchicken.com
  • From Nelgin@VERT/EOTLBBS to All on Wednesday, February 15, 2023 13:53:18
    On Thu, 9 Feb 2023 16:04:49 -0500
    "echicken" <echicken@VERT/ECBBS> wrote:

    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

    You have me confused for someone who knows how to do stuff ;)
    --
    End Of The Line BBS - Plano, TX
    telnet endofthelinebbs.com 23
    ---
    ■ Synchronet ■ End Of The Line BBS - endofthelinebbs.com