Description
hiptext is command line tool for rendering images and videos inside terminals.
hiptext alternatives and similar libraries
Based on the "Image Processing" category.
Alternatively, view hiptext alternatives based on common mentions on social networks and blogs.
-
OpenMVG (open Multiple View Geometry)
open Multiple View Geometry library. Basis for 3D computer vision and Structure from Motion. -
OpenImageIO
Reading, writing, and processing images in a wide variety of file formats, using a format-agnostic API, aimed at VFX applications. -
OpenEXR
The OpenEXR project provides the specification and reference implementation of the EXR file format, the professional-grade image storage format of the motion picture industry. -
ITK
Insight Toolkit (ITK) -- Official Repository. ITK builds on a proven, spatially-oriented architecture for processing, segmentation, and registration of scientific images in two, three, or more dimensions. -
GDCM
Grassroots DICOM read-only mirror. Only for Pull Request. Please report bug at http://sf.net/p/gdcm -
AVIR
High-quality pro HDR image resizing / scaling C++ library, including a very fast, precise, SIMD Lanczos resizer (header-only C++) -
SAIL
The missing small and fast image decoding library for humans (not for machines) ⛵ https://sail.software -
CxImage
DISCONTINUED. An image processing and conversion library to load, save, display, transform BMP, JPEG, GIF, PNG, TIFF, MNG, ICO, PCX, TGA, WMF, WBMP, JBG, J2K images. [zlib] -
FreeImage
A custom distribution of FreeImage, with a CMake-based build system. Used by the Athena Game Framework. -
FLOP
FLOꟼ - An MIT-licensed image viewer equipped with a GPU-accelerated perceptual image diffing algorithm based on ꟻLIP
SaaSHub - Software Alternatives and Reviews
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of hiptext or a related project?
Popular Comparisons
README
hiptext
hiptext is command line tool for rendering images and videos inside terminals.
Dependencies
You need clang or gcc >=4.7. You also need to install:
sudo apt-get install build-essential libpng12-dev libjpeg-dev \
libfreetype6-dev libavformat-dev libavcodec-dev \
libswscale-dev libgflags-dev libgoogle-glog-dev ragel
Installation
wget https://github.com/jart/hiptext/releases/download/0.2/hiptext-0.2.tar.gz
tar xvzf hiptext-0.2.tar.gz
cd hiptext-0.2
./configure
make -j4
sudo make install
If you get compile or link errors relating to freetype, and you do not have
freetype-config(1)
on your path, try modifying Makefile
to adjust the
LIBFREETYPE_CFLAGS
and LIBFREETYPE_LIBS
for your system.
Usage
Images
Most image types, e.g. JPEG, PNG, GIF, etc. are supported.
hiptext balls.png
Videos
You can play videos in your terminal using hiptext. Yes, really.
youtube-dl -o gangnam-style.mp4 https://www.youtube.com/watch?v=9bZkp7q19f0
hiptext gangnam-style.mp4
Miscellaneous
hiptext --spectrum
hiptext --nocolor balls.png
hiptext --nocolor --chars=" .oO0" balls.png
Rendering Modes
xterm256
By default, hiptext assumes you're using an xterm256 compatible terminal,
e.g. gnome-terminal, without bothering to check the TERMINAL
environment
variable.
hiptext --xterm256 balls.png
To double the number of pixels using Unicode half blocks, consider using the following option, which may become the default in the future:
hiptext --xterm256unicode balls.png
MacTerm
The most beautiful terminal for hiptext is the one built into Mac OS X called Terminal.app. This terminal uses xterm256 but it's implemented using a custom color palette that was chosen by designers rather than engineers.
But the interesting thing about this palette is that it uses slightly different colors for foreground and background. By using Unicode half blocks, this allows us to simulate something closer to 512 colors!
hiptext --macterm balls.png
However to use this, you must be using the black color scheme. After all, why would you use anything else?
Unicode
If you want to render an image without the ANSI color escape codes, you can use
the --nocolor
flag. This will render the image using shaded unicode block
characters.
hiptext --nocolor balls.png
ASCII
The no-color mode supports a very simple character quantiser that can convert images to ASCII. Please understand that if this is what you want, there are much better tools for the job, like cacalib.
hiptext --nocolor --chars=" .oO0" balls.png
SIXEL
If you use a SIXEL terminal, e.g. mlterm >=v3.1.3, then the following flags can provide much more minute rendering:
hiptext --sixel256 balls.png # For 256-color SIXEL terminal such as mlterm (>=v3.1.3)
hiptext --sixel16 balls.png # For 16-color SIXEL terminal such as xterm(patch level >= #294) with "-ti vt340 option"
hiptext --sixel2 balls.png # For monochrome SIXEL terminals
Configuration
Background
By default, hiptext assumes that your terminal background is black. If this is not the case, you can specify your background color using a CSS or X11 color string.
hiptext --bg=white balls.png