Image browser and viewer
Go to file
Přemysl Eric Janouch 701846ab39
Support opening collections of files
Implement a process-local VFS to enable grouping together arbitrary
URIs passed via program arguments, DnD, or the file open dialog.

This VFS contains FivCollectionFile objects, which act as "simple"
proxies over arbitrary GFiles.  Their true URIs may be retrieved
through the "standard::target-uri" attribute, in a similar way to
GVfs's "recent" and "trash" backends.

(The main reason we proxy rather than just hackishly return foreign
GFiles from the VFS is that loading them would switch the current
directory, and break iteration as a result.

We could also keep the collection outside of GVfs, but that would
result in considerable special-casing, and the author wouldn't gain
intimate knowledge of GIO.)

There is no perceived need to keep old collections when opening
new ones, so we simply change and reload the contents when needed.

Similarly, there is no intention to make the VFS writeable.

The process-locality of this and other URI schemes has proven to be
rather annoying when passing files to other applications,
however most of the resulting complexity appears to be essential
rather than accidental.

Note that the GTK+ file chooser widget is retarded, and doesn't
recognize URIs that lack the authority part in the location bar.
2022-08-08 18:06:50 +02:00
docs Integrate dconf-editor 2022-08-05 09:58:04 +02:00
resources Support opening collections of files 2022-08-08 18:06:50 +02:00
subprojects Make the jpeg-quantsmooth wrap work on Debian 2022-07-23 15:23:44 +02:00
tools Generate TIFF structs/enums from a text file 2022-06-10 02:18:14 +02:00
wuffs-mirror-release-c@123a5c6ede Bump Wuffs, support partial PNGs through it 2022-06-04 19:19:16 +02:00
.clang-format Add clang-format configuration 2021-11-01 05:17:26 +01:00
.gitignore Mesonize JPEG Quant Smooth 2022-01-19 01:11:47 +01:00
.gitmodules Mesonize JPEG Quant Smooth 2022-01-19 01:11:47 +01:00
LICENSE Use a unified filesystem model 2022-01-05 03:48:22 +01:00
README.adoc Use GSettings for a new native window toggle 2022-07-25 19:05:27 +02:00
fiv-browse.desktop Use the X-GNOME-FullName desktop file key 2022-02-21 22:29:14 +01:00
fiv-browser.c Support opening collections of files 2022-08-08 18:06:50 +02:00
fiv-browser.h Fully support GNOME's inode/directory mechanism 2022-01-12 11:12:32 +01:00
fiv-collection.c Support opening collections of files 2022-08-08 18:06:50 +02:00
fiv-collection.h Support opening collections of files 2022-08-08 18:06:50 +02:00
fiv-context-menu.c Support opening collections of files 2022-08-08 18:06:50 +02:00
fiv-context-menu.h Add the information dialog to context menus 2022-08-05 11:38:12 +02:00
fiv-io-benchmark.c Redirect warnings to the info bar 2022-01-24 05:48:13 +01:00
fiv-io.c Support opening collections of files 2022-08-08 18:06:50 +02:00
fiv-io.h Support opening collections of files 2022-08-08 18:06:50 +02:00
fiv-jpegcrop.c Clean up 2022-06-05 13:30:53 +02:00
fiv-jpegcrop.desktop Add a lossless JPEG cropper 2022-02-19 20:48:38 +01:00
fiv-sidebar.c Support opening collections of files 2022-08-08 18:06:50 +02:00
fiv-sidebar.h Use a unified filesystem model 2022-01-05 03:48:22 +01:00
fiv-thumbnail.c Support opening collections of files 2022-08-08 18:06:50 +02:00
fiv-thumbnail.h Support opening collections of files 2022-08-08 18:06:50 +02:00
fiv-update-desktop-files.in Handle gdk-pixbuf's dynamic format support better 2022-07-25 19:05:37 +02:00
fiv-view.c Add the information dialog to context menus 2022-08-05 11:38:12 +02:00
fiv-view.h Add support for copying to clipboard 2022-08-04 00:35:22 +02:00
fiv.c Support opening collections of files 2022-08-08 18:06:50 +02:00
fiv.desktop Support opening collections of files 2022-08-08 18:06:50 +02:00
fiv.gschema.xml Add sidebar/toolbar toggles to GSettings 2022-07-25 23:20:30 +02:00
fiv.svg Improve the icon 2022-01-09 09:47:44 +01:00
meson.build Support opening collections of files 2022-08-08 18:06:50 +02:00
meson_options.txt Build tools with Meson as well 2022-06-10 02:08:56 +02:00
tiff-tables.awk Generate TIFF structs/enums from a text file 2022-06-10 02:18:14 +02:00
tiff-tables.db Generate TIFF structs/enums from a text file 2022-06-10 02:18:14 +02:00
xdg.c Mildly improve Windows portability 2022-07-21 09:57:00 +02:00
xdg.h Split out xdg.{c,h} 2021-11-01 05:17:26 +01:00

README.adoc

fiv

fiv is a slightly unconventional, general-purpose image browser and viewer for Linux (that said, macOS and Windows ports are possible).

Screenshot of both the browser and the viewer

Features

  • Uses a compact thumbnail view, helping you browse collections comfortably.

  • Supports BMP, (A)PNG, GIF, TGA, JPEG, WebP directly, plus optionally raw photos, HEIC, AVIF, SVG, X11 cursors and TIFF, or whatever your gdk-pixbuf modules manage to load.

  • Employs high-performance file format libraries: Wuffs and libjpeg-turbo.

  • Makes use of 30-bit X.org visuals, whenever its possible and appropriate.

  • Has a notion of pages, and tries to load all included content within files.

  • Can keep the zoom and position when browsing, to help with comparing zoomed-in images.

Explicit non-goals

  • Editing—thats what editors are for, be it GIMP or Rawtherapee; nothing beyond the most basic of adjustments is desired.

  • Following the latest GNOME HIG to the letter—header bars are deliberately avoided, for their general user hostility.

  • Memory efficiency is secondary to both performance and development effort.

Aspirations

Show colours as accurately as hardware allows. Open everything. Be fast. Not necessarily in this order.

Packages

Regular releases are sporadic. git master should be stable enough. You can get a package with the latest development version from Archlinuxs AUR.

Building and Running

Build dependencies: Meson, pkg-config
Runtime dependencies: gtk+-3.0, glib>=2.64, pixman-1, shared-mime-info, libturbojpeg, libwebp
Optional dependencies: lcms2, LibRaw, librsvg-2.0, xcursor, libheif, libtiff, ExifTool, resvg (unstable API, needs to be requested explicitly)

$ git clone --recursive https://git.janouch.name/p/fiv.git
$ meson builddir
$ cd builddir
$ meson compile

Considering the vast amount of dynamically-linked dependencies, do not attempt direct installations via ninja install. To test the program:

$ meson devenv fiv

The lossless JPEG cropper is intended to be invoked from a context menu.

Documentation

For information concerning usage, refer to the user guide, which can be invoked from within the program by pressing F1.

Contributing and Support

Use https://git.janouch.name/p/fiv to report any bugs, request features, or submit pull requests. git send-email is tolerated. If you want to discuss the project, feel free to join me at ircs://irc.janouch.name, channel #dev.

Bitcoin donations are accepted at: 12r5uEWEgcHC46xd64tt3hHt9EUvYYDHe9

License

This software is released under the terms of the 0BSD license, the text of which is included within the package along with the list of authors.