HDR image viewer built on the MANGO multimedia library. iFap decodes images on background worker threads, uploads them to the GPU, and displays them through a Vulkan HDR swapchain with scene-linear processing and colorspace-aware output (PQ HDR10, sRGB, and other surface formats supported by the display).
Open the archive. Browse inside. Never extract.
Point iFap at a
.7z,.zip,.rar,.iso, or comic pack (.cbz/.cbr/.cb7) and flip through every image inside as if it were a normal folder. MANGO maps containers through a virtual filesystem — nested archives, paths inside archives, the works — with the same decode-and-upload pipeline used for loose files on disk. No temp directories, no unpack step, no waiting to start reading.
Large images are decoded progressively; navigation stays responsive while uploads continue in the background.
- Container-native browsing — ZIP/ZIPX, RAR, 7z (new), ISO, HBS, and comic-book packs; open archives in place via MANGO's mapper layer, including nested containers
- Vulkan rendering with float16 processing target and HDR output transforms via MANGO
- Bilinear and bicubic filtering, pan/zoom, optional alpha blending
- Folder indexing with prefetch in the navigation direction
- Broad image format support inherited from MANGO's decoders (see below)
./ifap [image-or-folder] [--info] [--validate]| Key | Action |
|---|---|
← / Q |
Previous image |
→ / W |
Next image |
| Left drag | Pan |
| Right drag / wheel | Zoom |
1 / 2 / 3 |
Nearest / bilinear / bicubic filter |
B |
Toggle alpha blending |
F / double-click |
Fullscreen |
Esc |
Quit |
--info enables decode timing and other informational console output. --validate enables the Vulkan validation layer.
This is where MANGO earns its keep. iFap does not shell out to unzip or spawn extractors — the viewer opens the container, indexes what's inside, and streams individual members through the image decoders directly.
./ifap ~/downloads/chapter.zip
./ifap ~/manga/series/vol01.rar
./ifap ~/scans/archive.7z
./ifap ~/disc/photos.isoWorks the same for a path inside an archive (MANGO resolves the mapper chain transparently):
./ifap ~/manga/series/vol01.cbz/pages/0042.pngSupported container types (via MANGO):
| Extension | Type |
|---|---|
.zip, .zipx, .cbz, .apk |
ZIP archive (CBZ = comic/manga zip) |
.rar, .cbr |
RAR archive (CBR = comic/manga rar) |
.7z, .cb7 |
7-Zip archive (CB7 = comic/manga 7z; LZMA/LZMA2, PPMd, BZIP2, …) |
.iso |
ISO disc image |
.hbs |
HBS archive |
Nested archives are supported — an archive inside an archive is just another path segment. Prev/next walks every decodable image the indexer finds, whether the files live on disk or several layers deep inside a .7z full of .cbz chapters.
7z/CB7 support is built when MANGO is compiled with LZMA enabled (default in most installs).
Formats are provided by MANGO. The lists below are derived from mango/source/mango/image/image_*.cpp decoder registration. Availability of optional codecs (camera RAW, HEIF, AVIF, JXL, etc.) depends on how MANGO was built.
These are the formats most relevant to iFap's HDR display path:
| Extension | Format |
|---|---|
.jpg, .jpeg, .jfif, .jpe, .jps, .mpo |
JPEG (including Ultra HDR / gain-map JPEG when present) |
.png |
PNG (including 16-bit and wide-gamut/HDR PNG) |
.avif |
AVIF |
.jxl |
JPEG XL |
.heic, .heif |
HEIF / HEIC |
.hdr |
Radiance RGBE |
.exr |
OpenEXR |
.tif, .tiff |
TIFF |
.pfm |
Portable Float Map |
.dng, .cr2, .cr3, .nef, .arw, .raf, … |
Camera RAW (via LibRaw, when enabled in MANGO) |
.dds |
DirectDraw Surface (including float/HDR pixel formats) |
.webp |
WebP |
.jp2, .j2k, .j2c, .jpc, .jph, .jhc |
JPEG 2000 |
.psd, .psb |
Adobe Photoshop (16-bit/float channels) |
.bmp, .gif, .ico, .cur, .tga, .pcx, .pnm, .pbm, .pgm, .ppm, .pam, .qoi, .toi, .sgi, .rgb, .rgba, .bw, .wp2, .jxr, .wdp, .pict, .pct, .pic, .soft, .zpng, .fbmp
.dds, .ktx, .ktx2, .pvr, .astc, .pkm
.iff, .lbm, .ilbm, .anim, .ham, .ham6, .ham8, .ehb, .rgbn, .rgb8, .cimg, .pi1–.pi3, .pc1–.pc3, .neo, .spu, .spc, .sps, .ca1–.ca3, .tny, .tn1–.tn3, .img, .ximg, .pix, .mag, .shr, .3200, .scr
.sc2, .sc4, .sc5, .sr5, .sc6, .sc7, .sc8, .sca, .scc, .g9b, .mif, .mig
.mpic, .afl, .afli, .ami, .art, .ocp, .a64, .blp, .bpi, .pi, .cdu, .dol, .dd, .ddl, .drl, .dlp, .drz, .dp64, .drp, .dp, .eci, .fpt, .fcp, .fd2, .fpr, .fun, .fp2, .gun, .ifl, .hcb, .hfc, .him, .koa, .kla, .pmg, .pp, .ppp, .rpm, .sar, .unp, .shfli, .shx, .shfxl, .mci, .mcp, .ufup, .ufli, .uifli, .vid, .flf, .vic
.gr8, .gr9, .mic, .hip, .pi9, .tip, .rip, .ice
iFap requires a C++20 compiler and a built/install MANGO package (Vulkan, image, and window modules).
Build and install MANGO first (sibling checkout shown; adjust paths as needed):
git clone https://github.com/t0rakka/mango.git
cd mango
cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Release
cmake --build build
sudo cmake --install buildThen configure and build iFap:
git clone https://github.com/t0rakka/ifap.git
cd ifap
cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Release
cmake --build buildIf MANGO is not installed system-wide, point CMake at your build tree:
cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_PREFIX_PATH=/path/to/mango/build
cmake --build buildThe executable is build/ifap (or build/ifap.exe on Windows).
When distributing a binary with shared libraries next to it:
patchelf --set-rpath '$ORIGIN' ifapCopyright 2013–2025 Twilight 3D Finland Oy. See source file headers for license terms.