Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mekb-turtle/foto
:framed_picture: Simple image viewer written in C
https://github.com/mekb-turtle/foto
image-viewer photo-viewer sdl sdl2 sdl2-image
Last synced: about 2 months ago
JSON representation
:framed_picture: Simple image viewer written in C
- Host: GitHub
- URL: https://github.com/mekb-turtle/foto
- Owner: mekb-turtle
- License: mpl-2.0
- Created: 2023-04-30T04:31:23.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-23T10:39:18.000Z (2 months ago)
- Last Synced: 2024-12-02T09:24:16.539Z (2 months ago)
- Topics: image-viewer, photo-viewer, sdl, sdl2, sdl2-image
- Language: C
- Homepage:
- Size: 1.21 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
A simple image viewer written in C
---
## About The Project
Foto is a simple image viewer written in C. It simply shows an image to the user. 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`
```bash
git clone https://aur.archlinux.org/foto # use foto-git instead for latest commit
cd foto
makepkg -si
```### Debian-based
```bash
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````bash
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
```