How md-mushfiqur123/mif-image-format works
MIF is a lossless image format with Python and C reference codecs. The primary workflow is to encode a standard image into MIF, then decode it back with CRC-32 integrity checking; the CLI exposes encode, decode, and metadata inspection. The v2 Python engine also powers the GUI studio and Windows thumbnail handler. The README documents additional codec capabilities, including spatial predictors and reversible color transforms. Edges are limited to calls visible in excerpts or relationships stated in the README; the sampled code does not show internal v2 processing calls.
Main entry points: mif_cli.py CLI converter · mif_studio.py GUI studio · mif_thumbnail_handler.py Thumbnail handler · mif_engine_v2.py Python v2 engine
Components 11
Codec implementations
- Python v1 codec
mif_codec.py - Python v2 engine
mif_engine_v2.py - C reference codec
libmif.h
User tools
- CLI converter
mif_cli.py - GUI studio
mif_studio.py
Shell integration
- Thumbnail handler
mif_thumbnail_handler.py - Shell registration
register_mif_os.reg
Other components
- Image user
- Image files
- MIF files
- Windows Explorer
Connections 12
- Image user → CLI converter: runs commands
README.md - CLI converter → Python v1 codec: calls codec
mif_cli.py - Image files → CLI converter: provides input
README.md - CLI converter → MIF files: writes output
README.md - MIF files → CLI converter: provides input
README.md - CLI converter → Image files: writes output
README.md - Image user → GUI studio: opens studio
README.md - GUI studio → Python v2 engine: calls engine
mif_studio.py - Image user → C reference codec: integrates library
README.md - Windows Explorer → Thumbnail handler: requests preview
- Thumbnail handler → Python v2 engine: decodes image
mif_thumbnail_handler.py - Shell registration → Windows Explorer: registers association
README.md