• Sixel Gallery

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