LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-26-2018, 06:10 PM   #16
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656

Quote:
Originally Posted by RandomTroll View Post
I raised the issue in the Slackware forum because I hoped that Slackers would want a non-X image viewer as part of Slackware. If I'm the only one - hard cheese for me.
My suggestion is a non-X image viewer, it just needs tweaking to get it to build with imlib2 support on 14.2 (otherwise, it will only display bitmap images). I provided that option if you want to try and play with it and see if you can get it to compile. It worked fine on 14.1 using ssh, so it's just a matter of finding what needs to be done to fix it on 14.2.

If you don't want to take the time, I totally understand, but it is a non-X image viewer that's included in Slackware, it's just currently built without imlib2 support (which is required to view jpeg and png images).
 
Old 02-26-2018, 06:10 PM   #17
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by RandomTroll View Post

Quote:
Originally Posted by BW-userx
that is what made me wonder why you looking to raise the dead. then I read about it in the paper, (LQ post) So I just stayed out of it.
seejpeg and svgalib are still Slackware packages: they may be effectively dead but they live in Slackware's distribution. If no one can make them work perhaps they should be removed.
Oh yeah here they are,
https://slackware.pkgs.org/14.2/slac..._64-1.txz.html
Code:
$ ls /var/log/packages | grep seejpeg
seejpeg-1.10-x86_64-1
but why you telling me? I am just a user, not the Author

what a mean they don't work?

inside of windowmaker

Code:
$ seejpeg -g /media/data/wallpaper/Panaroma/dbcb4cac-67d5-4012-bee1-8e06921bfe03_5.jpg
 
Are you running this program as root or suid-root?
so I

Code:
$ sudo seejpeg -g /media/data/wallpaper/Panaroma/dbcb4cac-67d5-4012-bee1-8e06921bfe03_5.jpg
then it kicked me out of WMaker, and left me a message.
Code:
svgalib : rage driver must be used but not found.
then I ended up having to shut down with the power button.

Last edited by BW-userx; 02-26-2018 at 06:24 PM.
 
Old 02-27-2018, 01:12 AM   #18
vonbiber
Member
 
Registered: Apr 2009
Distribution: slackware 14.1 64-bit, slackware 14.2 64-bit, SystemRescueCD
Posts: 533

Rep: Reputation: 129Reputation: 129
Quote:
Originally Posted by RandomTroll View Post
(though it often can't display PDFs).
For displaying PDFs I use fbpdf (framebuffer pdf viewer)
http://repo.or.cz/fbpdf.git
 
1 members found this post helpful.
Old 02-28-2018, 04:34 PM   #19
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,959

Original Poster
Rep: Reputation: 271Reputation: 271Reputation: 271
Quote:
Originally Posted by vonbiber View Post
For displaying PDFs I use fbpdf (framebuffer pdf viewer)
Thanks, it works well.
 
Old 06-24-2020, 09:57 PM   #20
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,446
Blog Entries: 7

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553
Quote:
Originally Posted by RandomTroll View Post
I was happy with seejpeg & svgalib, but they stopped working sometime ago and nothing I have tried has gotten them to work.
Hey Mr. RandomTroll, did you ever get this working? A post on another thread made me try it, but I seem to be butting my head... A quick Google search lead me to your post. Just wondering if you've had any joy?

Using links with the fb driver works quite well... but I'm keener to get seejpeg/svgalib working if possible.
 
Old 06-25-2020, 10:43 AM   #21
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,959

Original Poster
Rep: Reputation: 271Reputation: 271Reputation: 271
Quote:
Originally Posted by rkelsen View Post
Hey Mr. RandomTroll, did you ever get this working? A post on another thread made me try it, but I seem to be butting my head... A quick Google search lead me to your post. Just wondering if you've had any joy?

Using links with the fb driver works quite well... but I'm keener to get seejpeg/svgalib working if possible.
I think the day has passed that anyone using up-to-date video software can use svgalib. I use fbida, which I have to build myself as Slackware has no package for it.
 
1 members found this post helpful.
Old 06-26-2020, 10:16 AM   #22
musicfan
LQ Newbie
 
Registered: Mar 2018
Distribution: Slackware64
Posts: 14

Rep: Reputation: Disabled
@rkelsen

There's a w3m web browser which can draw images in both tty and terminal window. Many people install it in order to preview graphical files in terminal file managers like ranger and vifm. There is also Überzug, a Python package which allows preview in terminal windows, but my guess is that it won't work in teletype, as it requires X. W3mimgdisplay is a small program that ships with w3m and its purpose is to draw images for w3m. You could install w3m and wrap w3mimgdisplay in a script. I have started learning bash last week, so I wrote this as an exercise, so that you (or anyone else) can try it as quickly as possible, but keep in mind that I am a supernewbie, so please proofread it, adjust it to fit your need and so on, before you run it.

Code:
#!/bin/env bash

W3MIMGDISPLAY_PATH="${W3MIMGDISPLAY_PATH:-/usr/libexec/w3m/w3mimgdisplay}"
# size of font in pixels in
# terminal emulator
fontWidth=8
fontHeight=14
# and tty
linuxWidth=9
linuxHeight=16

[[ $1 == '' ]] && { printf '%s\n' 'usage: img2xterm [ARG]'; exit 1; }
[[ -x $W3MIMGDISPLAY_PATH ]] || { printf '%s\n%s\n' "w3mimgdisplay not found here:" "$W3MIMGDISPLAY_PATH"; exit 1; }

prepare() {
    case $TERM in
        xterm)
            theFontWidth="$fontWidth"
            theFontHeight="$fontHeight"
            ;;
        linux)
            theFontWidth="$linuxWidth"
            theFontHeight="$linuxHeight"
            ;;
        # Your terminal goes here.
        *)
            theFontWidth="$fontWidth"
            theFontHeight="$fontHeight"
            ;;
    esac
}

draw() {
    local width height lines columns
    read -r width height <<< "$("$W3MIMGDISPLAY_PATH" <<< "$(printf '5;%s' "$1")")"
    read -r lines columns <<< "$(stty size)"
    local maxWidth=$((theFontWidth * columns))
    local maxHeight=$((theFontHeight * $((lines - 1))))
    if [[ $width -gt $maxWidth ]]; then
        height=$((height * maxWidth / width))
        width="$maxWidth"
    fi
    if [[ $height -gt $maxHeight ]]; then
        width=$((width * maxHeight / height))
        height="$maxHeight"
    fi
    clear
    tput cup $((height / fontHeight + 1)) 0
    "$W3MIMGDISPLAY_PATH" <<< "$(printf '0;1;0;0;%s;%s;;;;;%s\n4;\n3;' "$width" "$height" "$1")"
}

prepare
draw "$1"
Here you can find viewer written for vifm that uses Überzug as previewer, but it could probably be rewritten to use w3m. You could read pdf files from tty. Convert from ImageMagick works faster for pdf, but at cost of quality loss. Macros that vifm sends to Überzug (%px, %py, %pw, %ph and %c) go here:

Code:
# px, py - coordinates of top left corner of image
# pw, ph - width and height of image
# c - file to draw

w3mString="0;1;$px;$py;$pw;$ph;;;;;$c\n4;\n3;"
echo -e "$w3mString" | /path/to/w3mimgdisplay
I have been using w3mimgdisplay in ranger and vifm for ages. It works fine in xterm, but ranger has some issues after v. 1.8.1, at least for me, so I moved to vifm and was forced to learn bash
 
1 members found this post helpful.
Old 06-26-2020, 02:21 PM   #23
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,500

Rep: Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308
I believe that the best non-X image viewer is Gwenview running in Wayland/Plasma5. This way it uses, of course, Wayland instead of X11.

Last edited by LuckyCyborg; 06-26-2020 at 02:22 PM.
 
Old 06-29-2020, 01:22 PM   #24
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,959

Original Poster
Rep: Reputation: 271Reputation: 271Reputation: 271
Quote:
Originally Posted by LuckyCyborg View Post
it uses, of course, Wayland instead of X11.
Is Wayland graphical?
 
Old 06-29-2020, 01:57 PM   #25
ZhaoLin1457
Senior Member
 
Registered: Jan 2018
Posts: 1,022

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Quote:
Originally Posted by RandomTroll View Post
Is Wayland graphical?
Yeah, this Wayland is so graphical that the entire Plasma5 desktop runs on it, not only Gwenview...
 
Old 06-29-2020, 07:55 PM   #26
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,959

Original Poster
Rep: Reputation: 271Reputation: 271Reputation: 271
Quote:
Originally Posted by ZhaoLin1457 View Post
Yeah, this Wayland is so graphical that the entire Plasma5 desktop runs on it, not only Gwenview...
I wanted non-graphical. I'm so behindhand I didn't know there was an alternative to X. I prefer text mode.
 
Old 07-01-2020, 01:05 PM   #27
slacktroll
Member
 
Registered: May 2011
Distribution: Slackware64/current
Posts: 175

Rep: Reputation: 44
Quote:
Originally Posted by BW-userx View Post
Oh yeah here they are,
https://slackware.pkgs.org/14.2/slac..._64-1.txz.html
Code:
$ ls /var/log/packages | grep seejpeg
seejpeg-1.10-x86_64-1
but why you telling me? I am just a user, not the Author

what a mean they don't work?

inside of windowmaker

Code:
$ seejpeg -g /media/data/wallpaper/Panaroma/dbcb4cac-67d5-4012-bee1-8e06921bfe03_5.jpg
 
Are you running this program as root or suid-root?
so I

Code:
$ sudo seejpeg -g /media/data/wallpaper/Panaroma/dbcb4cac-67d5-4012-bee1-8e06921bfe03_5.jpg
then it kicked me out of WMaker, and left me a message.
Code:
svgalib : rage driver must be used but not found.
then I ended up having to shut down with the power button.
Booting without any framebuffer drivers loaded (including nvidia blob) and forcing chipset VGA in /etc/vga/libvga.config should be enough to get it working :-)
 
Old 07-11-2020, 05:21 AM   #28
henderson
Member
 
Registered: Mar 2018
Distribution: Linux Mint
Posts: 43

Rep: Reputation: 34
Quote:
Originally Posted by RandomTroll View Post
I was happy with seejpeg & svgalib, but they stopped working sometime ago and nothing I have tried has gotten them to work. I've been building fbida to view images non-X-ly. I see no alternative package in Slackware: have I missed it?
Is Gthumb in Slackware? That's a very good image viewer!
 
Old 07-12-2020, 09:22 AM   #29
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,959

Original Poster
Rep: Reputation: 271Reputation: 271Reputation: 271
Quote:
Originally Posted by henderson View Post
Is Gthumb in Slackware? That's a very good image viewer!
Only for X.
 
Old 07-12-2020, 09:33 AM   #30
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,095

Rep: Reputation: 7272Reputation: 7272Reputation: 7272Reputation: 7272Reputation: 7272Reputation: 7272Reputation: 7272Reputation: 7272Reputation: 7272Reputation: 7272Reputation: 7272
Quote:
Originally Posted by henderson View Post
Is Gthumb in Slackware? That's a very good image viewer!
It is not included in Slackware.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Best image viewer,djvu viewer pdf viewer cd/dvd writer for debian 7 rubankumars Debian 2 05-15-2013 08:23 AM
Kuickshow or alternative image viewer rng Linux - General 2 02-09-2012 06:10 PM
[SOLVED] programming in GNU/Linux with SVGAlib or alternative on the console? dchmelik Programming 6 04-17-2011 04:16 PM
LXer: Comix - User firendly Comic book & general image viewer in openSUSE LXer Syndicated Linux News 0 10-29-2008 11:50 AM
seejpeg - svgalib cannot get I/O-permissions artificialGekko Slackware 5 03-22-2005 12:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration