Skip to content

Latest commit

 

History

History
45 lines (38 loc) · 1.63 KB

README.md

File metadata and controls

45 lines (38 loc) · 1.63 KB
Foto

A simple image viewer written in C

Version Stars License


About The Project

Foto is a simple image viewer written in C. It simply shows an image to the user, either on a window or in the terminal. It is designed to be used in scripts, so there are no keybinds or UI. You can specify the position and size at which the window intially appears, and additionally the background colour for letterboxing/pillarboxing or transparency.


Installing

Arch-based

If you use an AUR helper, use it instead, e.g paru -S foto or paru -S foto-git

git clone https://aur.archlinux.org/foto # use foto-git instead for latest commit
cd foto
makepkg -si

Debian-based

sudo apt install build-essential meson libsdl2-dev libsdl2-image-dev

Then follow the instructions below

Other distros

Find the following dependencies in your package manager or elsewhere:

  • sdl2
  • sdl2_image
  • meson
git clone https://github.com/mekb-turtle/foto.git
cd foto
git checkout "$(git describe --tags --abbrev=0)" # checkout to latest tag, omit for latest commit
meson setup build
meson install -C build