Skip to content

benchware/WorstImageFormat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Worst Image Format Logo

License: GPL v3 Python: 3.8+ Format: .wimf | .wif

WIMF: Worst IMage Format

WIMF is an experimental image format that provides advanced features like self-healing, undo history, and fast region loading. It uses modern color math and wavelets to store your images with high precision and density.

Core Features

  • Tiled ROI Decoding: High-speed Region of Interest extraction from massive (16K+) images without decompressing the full bitstream.
  • Self-Healing (Anti-Rot): Built-in XOR parity protection (block-level)
  • Chrono-Layers: Delta-compressed historical state tracking, allowing a single file to store a complete undo history.
  • Progressive Loading: Chunked bitstream structure allows image quality to improve gradually during transit.
  • Advanced Watermarking: Invisible secret embedding directly within wavelet frequency layers.
  • High Precision & Extra Channels: Full 10-bit and 16-bit precision pipelines with native support for 5-channel data (RGBA + Depth).

The Technology

WIMF utilizes an advanced wavelet-based engine to outperform traditional block-based compression (like JPEG) in detail preservation:

  • Haar Wavelet Engine: Multi-level frequency decomposition that prioritizes image structure over noise, resulting in painterly blurs rather than blocky artifacts at low bitrates.
  • Reversible YCoCg-R: A high-efficiency color transform providing superior decorrelation and bit-perfect color accuracy.
  • LZMA Entropy Coding: Deep dictionary-based compression for maximum data density.
  • Vectorized Math: 100% NumPy-based implementation for high-speed multi-threaded processing.

Developer Suite

  • wimf Python Library: API featuring stateful WIMFDecoder and WIMFEncoder classes.
  • wimf-convert: Robust CLI tool for batch conversion, format migration, and performance benchmarking.
  • wimf-cat: View WIMF images in the CLI.
  • wimf-meta: Metadata editor for non-destructive header updates.

Installation

WIMF is currently available as a source-only library. To install the developer suite:

  1. Clone the repository:

    git clone https://github.com/benchware/WorstImageFormat.git
    cd WorstImageFormat
  2. Install dependencies:

    pip install numpy pillow
  3. Install in editable mode:

    pip install -e .

(PyPI release coming soon)

Quick Start

import wimf
from PIL import Image

# High-level opening
img = wimf.open("photo.wimf")
img.pil.show()

# High-level saving
wimf.save("output.wimf", img.pil, quality=7, anti_rot=True)

TODO List

  • Web support
  • Test on ARM
  • Publish on PyPI

License

Worst IMage Format is licensed under the GNU General Public License (GPL) v3.0. You are free to use, modify, and distribute this software under the terms of the GPL v3.0.

For more information, see GNU General Public License.

About

.wif and .wimf - Worst IMage Format

Resources

License

Stars

2 stars

Watchers

1 watching

Forks

Packages

 
 
 

Contributors