Skip to content

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

Notifications You must be signed in to change notification settings

julgitt/PPM-Image-Formatter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

# main <path to your input ppm image> -<option> <optional parameter>

-blackwhite

# 0.5 - no changes, < 0.5 - decrease gamma, > 0.5 - increase gamma    
-gamma <intensity (value must be between 0 - 1)>

#  eg. r - only red color, rgb - all colors visible    
-filter <available filters (rgb) and all theirs combinations>

# 0.5 - no changes, < 0.5 - decrease gamma, > 0.5 - increase contrast       
-contrast <intensity (value must be between 0 - 1)>
    

Example usage

Original Photo: image

Black and white filter: image

Filter with rb option: image

Gamma with 0.8 value: image

Contrast with 0.3 value: image

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published