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

https://github.com/julgitt/ppm-image-formatter

Formatter features filtering colors, desaturating image, gamma and contrast manipulation
https://github.com/julgitt/ppm-image-formatter

c image image-editor ppm

Last synced: about 2 months ago
JSON representation

Formatter features filtering colors, desaturating image, gamma and contrast manipulation

Awesome Lists containing this project

README

          

# PPM IMAGE FORMATTER
A simple C program that allows you to modify images with a .ppm extension (only p3 for now).

Compile and run the program in the terminal with one of the options:

```python
# main -

-blackwhite

# 0.5 - no changes, < 0.5 - decrease gamma, > 0.5 - increase gamma
-gamma

# eg. r - only red color, rgb - all colors visible
-filter

# 0.5 - no changes, < 0.5 - decrease gamma, > 0.5 - increase contrast
-contrast

```

## Example usage

*Original Photo:*
![image](https://github.com/julgitt/PPM-Image-Formatter/assets/95649808/e85116b7-8154-4ef0-98a6-f0720be00d08)

*Black and white filter:*
![image](https://github.com/julgitt/PPM-Image-Formatter/assets/95649808/48020370-e207-414f-afbc-be4947d36fd9)

*Filter with rb option:*
![image](https://github.com/julgitt/PPM-Image-Formatter/assets/95649808/c73ecc3c-b209-4a5d-a2cd-aa29cf417ffa)

*Gamma with 0.8 value:*
![image](https://github.com/julgitt/PPM-Image-Formatter/assets/95649808/27c9cf90-f598-4e47-8c9d-079806d03d5d)

*Contrast with 0.3 value:*
![image](https://github.com/julgitt/PPM-Image-Formatter/assets/95649808/b9246d99-3df4-4889-aa1d-2e44a10c389a)