• Stars
    star
    134
  • Rank 269,692 (Top 6 %)
  • Language Vala
  • License
    BSD 3-Clause "New...
  • Created over 11 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

terminal image viewer

tiv: the terminal image viewer

Tiv implements its own rendering algorithms to display pictures loaded with the Gdk library to the terminal using ascii art and ansi256 in color and grayscale.

This program has been written for fun, the code is ugly but it will be cleaned up and refactorized into a library probably in the future.

kodim* images under the img/ directory are 24bit test images from kodak and are freely available for unrestricted here: http://r0k.us/graphics/kodak/

stiv

Stiv is the suckless reimplementation in plain C, bitmaps should be provided in rgb24 form and width/height are passed as arguments:

$ tiv -d foo.img > .bitmap 2> .size
$ stiv `cat .size` < .bitmap

Author

This program has been released on Jan 2013 by pancake Contact addresses are: @trufae and [email protected]

Supported terminals

              ascii    ansi    grey   256
iTerm2          x       x       x      x
OSX Terminal    x       x       -      -
xterm           x       x       x      x
st              x       x       x      x

Usage

Using the Vala implementation:

$ ./tiv -s 40 -t img/kodim15.jpg

Using the suckless C implementation:

$ ./stiv-jpeg
stiv-jpeg . suckless terminal image viewer
Usage: stiv [image] [width] [mode]
Modes: [ascii,ansi,grey,256,rgb]

$ ./stiv-jpeg img/kodim15.jpg 50

Example

original picture

original

ascii

ascii

ansi

ansi

grey

grey

256

256

More Repositories

1

radare2ida

Tools, documentation and scripts to move projects from IDA to R2 and viceversa
Python
132
star
2

ired

minimalistic commandline hexadecimal editor similar to radare
C
77
star
3

slpm

suckless package manager
Shell
62
star
4

spp

simple preprocessor
C
57
star
5

valabind

create bindings from vapi to nodejs, python, swig, c++
Vala
55
star
6

alt

Abstract Language Tree
C
29
star
7

toys

C
27
star
8

radare2-capstone

Vala API and R2 plugins for the Capstone disassembler framework
Vala
25
star
9

posixvala

bring back the posix profile to Vala
Vala
24
star
10

lum

Luvit Module utility (also known as lumit)
Lua
17
star
11

v-r2

V programming language bindings for radare2
V
13
star
12

0xFFFF

The Free Fiasco Firmware Flasher
13
star
13

sal

Scripting Assembly Language
C
12
star
14

quad-wheel

Inofficial fork of quad-wheel on Google-Code
C
11
star
15

cross-chroot

easy setup cross-platform chroots
Shell
10
star
16

cydia

build system to cross-compile cydia packages for cydia.radare.org
Makefile
9
star
17

v-toxml

V library to serialize XML documents
V
8
star
18

gradare2

Port of gradare GTK/VTE frontend to r2
C
8
star
19

v-r2pipe

r2pipe for V
V
6
star
20

radare2-dockers

radare2 docker services repository
HTML
6
star
21

radare2-bin

Binary builds for radare2 for Android (DEPRECATED)
5
star
22

luvit-Connect

Luvit port of the node's connect middleware framework
Lua
5
star
23

fxos-app-fireboy

Gameboy emulator for FirefoxOS
JavaScript
5
star
24

bugcoin

bitcoin based bug tracker in nodejs
JavaScript
5
star
25

gtkaml

XML/Vala compiler for GTK
Vala
4
star
26

capstone-vala

Vala bindings for Capstone disassembler Engine
Vala
4
star
27

fxos-app-portscan

Portscan tool for FirefoxOS
CSS
3
star
28

defora-cc

Fork of DeforaOS compiler
C
3
star
29

luvit-options

easy to use getopt library for luvit
Lua
3
star
30

luvit-irc

irc client module for luvit
Lua
2
star
31

luvit-sdb

libsdb bindings for luvit
Lua
2
star
32

fxos-app-sdb

Sdb.JS webapp for FirefoxOS
2
star
33

gmc

Go Mail Client
Go
2
star
34

gtkaml3

XML/Vala compiler for GTK3
Vala
2
star
35

cry

commandline rsa crypto tool
JavaScript
2
star
36

pebble-disthumb

Thumb2 disassembler for the Pebble
C
2
star
37

radare2-signify

Download and signature verification for radare2 releases
Makefile
2
star
38

radare2live

VoidLinux LiveCD creation scripts
Shell
2
star
39

radare2-translations

Translation scripts for radare2 (see sys/translate.sh)
C
1
star
40

radare.github.io

CSS
1
star
41

fxos-app-hass

Hass - Password generation app for FirefoxOS
JavaScript
1
star
42

fxos-app-nimiali

JavaScript
1
star
43

luvit-JSON

JSON api for luvit
Lua
1
star
44

fxos-app-pocket

Pocket iframe webapp for FirefoxOS
CSS
1
star
45

node-yara

YARA support for Node.js
C++
1
star
46

luvit-cgi

cgi module for luvit
Lua
1
star
47

fxos-app-rax2

r2's rax2 tool in javascript
JavaScript
1
star
48

astyle-r2

astyle fork for r2 (wip)
C++
1
star
49

luvit-template

Asynchronous template system for luvit
Lua
1
star