2024-06-16 17:18:35 -04:00
|
|
|
# tview
|
|
|
|
> A (relatively) fast, lightweight, and useful image viewer.
|
2024-06-12 09:20:04 -04:00
|
|
|
|
2024-06-16 17:19:50 -04:00
|
|
|
![Main Image](https://git.dws.rip/dubey/tview/raw/branch/main/screenshots/main.png)
|
2024-06-12 09:20:04 -04:00
|
|
|
|
2024-06-16 17:18:35 -04:00
|
|
|
# Features
|
|
|
|
- Supports most common image formats
|
|
|
|
- EXIF Viewing
|
|
|
|
- Histogram Calculation
|
|
|
|
- Toggle image filtering
|
|
|
|
- Pixel level details
|
|
|
|
- Color tooltip
|
|
|
|
# Gallery
|
|
|
|
## Tooltip
|
|
|
|
Toggle the tooltip by pressing `t`
|
|
|
|
![[tooltip.png]]
|
|
|
|
## Detail Views
|
|
|
|
Toggle detail modes by pressing `d`
|
2024-06-12 09:20:04 -04:00
|
|
|
|
2024-06-16 17:18:35 -04:00
|
|
|
| Normal Arrow | Hex Color | RGB 255 Color | RGB Float Color |
|
|
|
|
| --------------------- | ------------------- | ----------------------- | ------------------------- |
|
|
|
|
| ![[detail_arrow.png]] | ![[detail_hex.png]] | ![[detail_rgb_int.png]] | ![[detail_rgb_float.png]] |
|
|
|
|
## Image Filtering
|
|
|
|
Toggle Filtering by pressing
|
2024-06-12 09:20:04 -04:00
|
|
|
|
2024-06-16 17:18:35 -04:00
|
|
|
| Filtering Off | Filtering On |
|
|
|
|
| ---------------------- | --------------------- |
|
|
|
|
| ![[filtering_off.png]] | ![[filtering_on.png]] |
|
|
|
|
# Usage
|
|
|
|
`tview PATH/TO/IMAGE`
|
2024-06-12 09:20:04 -04:00
|
|
|
|
2024-06-16 17:18:35 -04:00
|
|
|
Press `h` to show the help dialog within the program.
|
|
|
|
## Mouse
|
|
|
|
Scroll to zoom.
|
|
|
|
Click and drag to pan.
|
2024-06-12 09:20:04 -04:00
|
|
|
|
2024-06-16 17:18:35 -04:00
|
|
|
## Keyboard
|
|
|
|
- `h` - Show help
|
|
|
|
- `c`- Toggle Histogram
|
|
|
|
- `e`- Toggle EXIF data
|
|
|
|
- `d`- Cycle [[#Detail Views]] (default off)
|
|
|
|
- `a` - Toggle image filtering (default off)
|
|
|
|
- `g` - Toggle grid (only visible at pixel level)
|
|
|
|
- `r`- Rotate image 90 degrees clockwise
|
|
|
|
- `q` - Quit
|
2024-06-12 09:20:04 -04:00
|
|
|
|
2024-06-16 17:18:35 -04:00
|
|
|
# Installing
|
|
|
|
## Requirements to Run
|
|
|
|
- SDL2
|
|
|
|
- OpenGL
|
|
|
|
- Libexiv2
|
|
|
|
|
|
|
|
## Requirements to build
|
|
|
|
In addition to the run requirements
|
|
|
|
- CMake
|
|
|
|
- C++ Compiler (g++/clang++)
|
|
|
|
### On Ubuntu
|
2024-06-12 09:20:04 -04:00
|
|
|
```
|
2024-06-16 17:18:35 -04:00
|
|
|
apt install --no-install-recommends build-essential cmake libsdl2-dev libexiv2-dev mesa-utils
|
2024-06-12 09:20:04 -04:00
|
|
|
```
|
2024-06-16 17:18:35 -04:00
|
|
|
### On Debian
|
2024-06-12 09:20:04 -04:00
|
|
|
```
|
2024-06-16 17:18:35 -04:00
|
|
|
apt install --no-install-recommends build-essential cmake libsdl2-dev libexiv2-dev mesa-utils
|
|
|
|
```
|
|
|
|
### On Arch
|
|
|
|
```
|
|
|
|
pacman -Sy sdl2 mesa-utils exiv2 cmake base-devel
|
2024-06-12 09:20:04 -04:00
|
|
|
```
|
|
|
|
|
2024-06-16 17:18:35 -04:00
|
|
|
## Building
|
|
|
|
Clone the repository
|
|
|
|
```
|
|
|
|
git clone https://git.dws.rip/dubey/tview.git
|
|
|
|
```
|
2024-06-12 09:20:04 -04:00
|
|
|
|
2024-06-16 17:18:35 -04:00
|
|
|
Change directory into the repository
|
|
|
|
```
|
|
|
|
cd tview
|
|
|
|
```
|
2024-06-12 09:20:04 -04:00
|
|
|
|
2024-06-16 17:18:35 -04:00
|
|
|
Generate build files and trigger build
|
|
|
|
```
|
|
|
|
cmake .
|
|
|
|
cmake --build .
|
|
|
|
```
|
2024-06-12 09:20:04 -04:00
|
|
|
|
2024-06-16 17:18:35 -04:00
|
|
|
You will now have a file called `tview` in the repository root, you can copy this into your path:
|
|
|
|
```
|
|
|
|
sudo mv ./tview /usr/local/bin/tview
|
|
|
|
```
|
2024-06-12 09:20:04 -04:00
|
|
|
|
2024-06-16 17:18:35 -04:00
|
|
|
`tview` is now installed on your system
|