An open API service indexing awesome lists of open source software.

https://github.com/digitsensitive/foxviewppm

Lightweight image viewer written in C and SDL2
https://github.com/digitsensitive/foxviewppm

c c-programming image image-viewer pbm pgm ppm ppm-image sdl sdl2 viewer

Last synced: 25 days ago
JSON representation

Lightweight image viewer written in C and SDL2

Awesome Lists containing this project

README

        

# FoxViewPPM

![GitHub repo size](https://img.shields.io/github/repo-size/digitsensitive/FoxViewPPM)
![GitHub Release](https://img.shields.io/github/v/release/digitsensitive/FoxViewPPM)

FoxViewPPM is a lightweight image viewer written in `C` and `SDL2`, specifically
designed for PPM, PBM, and PGM file formats. This project was created for
educational purposes.

PPM Viewer Image

## Features

1. **Cross-Platform Compatibility**: FoxViewPPM is designed to work seamlessly
across various platforms, including Windows, macOS, and Linux.
2. **Support for PPM, PBM, and PGM Formats**: The viewer is capable of parsing and
displaying images in the widely used PPM (Portable Pixel Map),
PBM (Portable Bitmap), and PGM (Portable Graymap) formats.
3. **Command Line Support**: Run FoxViewPPM from the command line, making it
convenient for integration into scripts or other workflows.
4. **Open Source**: FoxViewPPM is an open-source project, encouraging collaboration
and contributions from the community. Feel free to fork the repository,
report issues, or submit pull requests.

## How to build

Initialize submodules:

```bash
git submodule update --init --recursive
```

Build Release:

```bash
cd build
cmake --build . --config Release
```

## References

- [ASCII Chart](https://en.cppreference.com/w/cpp/language/ascii)
- [PBM, PGM, and PPM files The simple image file formats](http://utk.claranguyen.me/guide.php?id=ppm)
- [PPM Format Specification](https://netpbm.sourceforge.net/doc/ppm.html)
- [PPM / PGM / PBM image files by Paul Bourke](https://paulbourke.net/dataformats/ppm)

## License

This project is licensed under the GPL-3.0 license.