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
- Host: GitHub
- URL: https://github.com/digitsensitive/foxviewppm
- Owner: digitsensitive
- License: gpl-3.0
- Created: 2023-12-23T11:48:03.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-14T18:13:27.000Z (over 1 year ago)
- Last Synced: 2025-02-14T08:47:16.756Z (3 months ago)
- Topics: c, c-programming, image, image-viewer, pbm, pgm, ppm, ppm-image, sdl, sdl2, viewer
- Language: C
- Homepage:
- Size: 4.27 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# 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.
## 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.