English | Polski
Very simplistic image viewer for Linux (Windows version)
All it does is load images and display them.
The program scales the image to fit into the window but doesn't stretch it to a bigger size than the original.
Execute: fih [your/image_path.png]
The supported image formats are the ones supported by the stb_image.h library:
- BMP (.bmp)
- PNG (.png)
- JPEG (.jpg/.jpeg)
- GIF (.gif) ONLY SHOWS FIRST FRAME
- TGA (.tga)
- PSD (.psd)
- RGBE (.hdr)
- PIC (.pic)
- XLib
- libxcb
Dependencies:
- XLib (library and headers)
- libxcb (library and headers)
- GNU Autoconf
- GNU Make
- a C Compiler (like GCC or Clang)
- enter the project directory in a shell
- prepare autoconf:
./autogen.sh - create and enter
builddirectory:mkdir build && cd build - configure the project:
../configure {flags}- you can get info about the flags with
../configure --help
- you can get info about the flags with
- compile the program:
make - there will appear an executable
fihin thebuilddirectory
OPTIONALLY:
- install the program: in the same directory execute
make install- the default install location is
/usr/local/binbut you can change it with the--prefixflag (for example:--prefix=/opt/fihinstalls in/opt/fih/bin)
- the default install location is
- uses
stb_image.handstb_image_resize.hfrom https://github.com/nothings/stb