https://github.com/synthous/cifir
Compressed image format used text information with support for clarity with ".cif" extension
https://github.com/synthous/cifir
Last synced: 2 months ago
JSON representation
Compressed image format used text information with support for clarity with ".cif" extension
- Host: GitHub
- URL: https://github.com/synthous/cifir
- Owner: SynthouS
- License: mit
- Created: 2025-02-23T14:56:34.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-02-26T07:42:00.000Z (3 months ago)
- Last Synced: 2025-02-26T08:33:36.337Z (3 months ago)
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
> [!IMPORTANT]
> I dont recommend use .cif in this moment,
> because now cifir it's slow and highweight
![]()
Cifir
| [Releases](https://github.com/SynthouS/cifir/releases) | [Issues](https://github.com/SynthouS/cifir/issues) |
# About & Usage
The **CIF (Cifir Image Format)** is a simple, text-based image format designed for ease of use and readability. It supports RGB colors and stores images in a human-readable format. Below is a detailed explanation of how the format works.
A CIF file consists of the following components:1. **Header**: The first line specifies the resolution of the image in the format ``. For example, `<3x3>` represents an image with a width of 3 pixels and a height of 3 pixels.
2. **Pixel Data**: Each subsequent line represents a row of pixels in the image. Each pixel is defined by a hexadecimal RGB color code prefixed with a `#`. For example, `#ff0000` represents red, `#00ff00` represents green, and `#0000ff` represents blue.
3. **Comments**: Comments can be added anywhere in the file using the format `<-- comment -->`. These are ignored during parsing.
# Cifir Viewer
Just open ```.cif``` use cifir app. or in windows u can type in cmd
```cifir.exe filename.cif``` and in linux ```./cifir filename.cif```
Also use ```lmb``` and ```mwheel``` for navigation# Cifirworks.py
it's a converter from png to cif and from cif to png.
Usage ```python cifirworks.py input.png output.cif``` ```python cifirworks.py input.cif output.png```