sxiv - Simple X Image Viewer

Forum rules
General talk about software - if the program is not in the repos, please links to the developer's page or github.
User avatar
kiiroitori
dpkg-reconfigure
Posts: 72
Joined: Tue Aug 27, 2013 12:22 pm

sxiv - Simple X Image Viewer

Unread post by kiiroitori » Thu Jan 15, 2015 1:21 pm

Hi Grillers,

I wanted to bring your attention to a piece of software that I really like, sxiv . I was using Geeqie to display images files and was looking for something without a GUI and more simple, so there is is.
I know there is 'feh' which is pretty straightforward but it kind of sucks balls (I know I am terrible when it comes to evaluate software in a balanced and argumented fashion).

some features:
no crop - rotate - remove red eye filter bullshit
caching of thumbnails that doesn't rape your hard-drive
Vim key-bindings by default (but can be changed, read below! )
configuration via modifying the config.h file and recompiling - no noob ass GUI
perfect to use in combination with ranger and impress the ladies
written by a German guy so good build quality I guess
etc,

for more visit https://github.com/muennich/sxiv and there is also an arch wiki page https://wiki.archlinux.org/index.php/Sxiv
A screenshot to see that there is nothing to see:
A screenshot to see that there is nothing to see:
edit: actually it has a rotate function, which is good, but you get my drift. Forgot to mention that it depends on very few libraries (about 96 times less than digikam for example).

User avatar
bones
Clooney
Posts: 2385
Joined: Fri Jun 28, 2013 11:47 pm
Location: Cascadia

Re: sxiv - Simple X Image Viewer

Unread post by bones » Thu Jan 15, 2015 1:48 pm

Nice, kiiroitori. In keeping with the BBQ philosophy!

User avatar
dkeg
Configurator
Posts: 3782
Joined: Sun Nov 18, 2012 9:23 pm
Location: Mid-Atlantic Grill

Re: sxiv - Simple X Image Viewer

Unread post by dkeg » Thu Jan 15, 2015 2:16 pm

I saw this and agree, looks great. My problem was it required too many dependencies and just did not seem worth it as feh does what I need for the minimal I do. Seems b/c I need libimlib2 is the reason (I guess this is what I need)

Code: Select all

>>  make
cc -std=c99 -Wall -pedantic -I/usr/local/include -D_XOPEN_SOURCE=500 -DHAVE_GIFLIB -DHAVE_LIBEXIF -DVERSION=\"git-20150107\" -MMD -MP -c -o commands.o commands.c
In file included from commands.c:28:0:
image.h:22:20: fatal error: Imlib2.h: No such file or directory
 #include <Imlib2.h>
                    ^
compilation terminated.
Makefile:34: recipe for target 'commands.o' failed
make: *** [commands.o] Error 1

>>  search imlib
conky-all - highly configurable system monitor (all features enabled)
conky-all-dbg - highly configurable system monitor (all features enabled - debug)
eterm - Enlightened Terminal Emulator
feh - imlib2 based image viewer
gambas3-gb-image-imlib - Gambas image effects: IMLIB bindings
giblib-dev - headers for giblib
giblib1 - wrapper library for imlib2, and other stuff
giblib1-dbg - debugging symbols for giblib1
libimlib2 - image loading, rendering, saving library
libimlib2-dev - image loading, rendering, saving library (development files)
python-kaa-imlib2 - Imlib2 Wrapper for Python
kdepimlibs-dbg - debugging symbols for the KDE Development Platform PIM libraries
kdepimlibs-kio-plugins - kio slaves used by KDE PIM applications
kdepimlibs5-dev - development files for the KDE Development Platform PIM libraries
libimage-imlib2-perl - perl interface to the imlib2 imaging library
libimage-seek-perl - Perl module to find similar pictures in a library
php-imlib - PHP Imlib2 Extension
qiv - Quick image viewer for X
scrot - command line screen capture utility
sxiv - simple X image viewer
libzim-dev - library implementation of ZIM specifications (development)
libzim0 - library implementation of ZIM specifications
libzim0-dbg - library implementation of ZIM specifications (debug symbols)

>>  get -s libimlib2-dev
[sudo] password for dkeg: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  libbz2-dev libgif-dev libid3tag0-dev libjbig-dev
  libjpeg-dev libjpeg62-turbo-dev libltdl-dev
  liblzma-dev libtiff5-dev libtiffxx5
Suggested packages:
  libtool-doc liblzma-doc
Recommended packages:
  bzip2-doc libtool
The following NEW packages will be installed:
  libbz2-dev libgif-dev libid3tag0-dev libimlib2-dev
  libjbig-dev libjpeg-dev libjpeg62-turbo-dev
  libltdl-dev liblzma-dev libtiff5-dev libtiffxx5
0 upgraded, 11 newly installed, 0 to remove and 0 not upgraded.
Inst libtiffxx5 (4.0.3-12 Debian:unstable [i386])
Inst libbz2-dev (1.0.6-7+b2 Debian:unstable [i386])
Inst libgif-dev (4.1.6-11 Debian:unstable [i386])
Inst libid3tag0-dev (0.15.1b-11 Debian:unstable [i386])
Inst libjpeg62-turbo-dev (1:1.3.1-11 Debian:unstable [i386])
Inst libjpeg-dev (1:1.3.1-11 Debian:unstable [all])
Inst libltdl-dev (2.4.2-1.11 Debian:unstable [i386])
Inst libjbig-dev (2.1-3.1 Debian:unstable [i386])
Inst liblzma-dev (5.1.1alpha+20120614-2+b3 Debian:unstable [i386])
Inst libtiff5-dev (4.0.3-12 Debian:unstable [i386])
Inst libimlib2-dev (1.4.6-2+b3 Debian:unstable [i386])
Conf libtiffxx5 (4.0.3-12 Debian:unstable [i386])
Conf libbz2-dev (1.0.6-7+b2 Debian:unstable [i386])
Conf libgif-dev (4.1.6-11 Debian:unstable [i386])
Conf libid3tag0-dev (0.15.1b-11 Debian:unstable [i386])
Conf libjpeg62-turbo-dev (1:1.3.1-11 Debian:unstable [i386])
Conf libjpeg-dev (1:1.3.1-11 Debian:unstable [all])
Conf libltdl-dev (2.4.2-1.11 Debian:unstable [i386])
Conf libjbig-dev (2.1-3.1 Debian:unstable [i386])
Conf liblzma-dev (5.1.1alpha+20120614-2+b3 Debian:unstable [i386])
Conf libtiff5-dev (4.0.3-12 Debian:unstable [i386])
Conf libimlib2-dev (1.4.6-2+b3 Debian:unstable [i386]

Work hard; Complain less

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: sxiv - Simple X Image Viewer

Unread post by machinebacon » Thu Jan 15, 2015 3:55 pm

Nice to see sxiv finally get a mention. libimlib2 is also dependency of feh, hsetroot or even fluxbox , so to compile (dkeg) you need libimlib2-dev. Though, why bother? sxiv in the repos.

user@grill:~$ ins sxiv
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
libjpeg-progs
The following NEW packages will be installed:
sxiv
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 43.8 kB of archives.
After this operation, 93.2 kB of additional disk space will be used.
..gnutella..

User avatar
stark
MILF
Posts: 521
Joined: Sat Sep 27, 2014 6:38 pm
Location: Arpanet
Contact:

Re: sxiv - Simple X Image Viewer

Unread post by stark » Thu Jan 15, 2015 4:36 pm

Yup! I removed feh not so long ago in favor of Sxiv its damn nice and customizable.
Last edited by stark on Fri Jan 16, 2015 8:12 am, edited 1 time in total.
If you can do it go ahead and do it, if you can't do it then don't even criticize it. - gingerdesu

User avatar
dkeg
Configurator
Posts: 3782
Joined: Sun Nov 18, 2012 9:23 pm
Location: Mid-Atlantic Grill

Re: sxiv - Simple X Image Viewer

Unread post by dkeg » Thu Jan 15, 2015 6:55 pm

Ah, funny, didn't even check. Just cloned the repo. Cool, I'll re-check it out again tonight. Thanks MB.

Work hard; Complain less

Post Reply