From 681cfeb92677ab04f11f530546b6e1aa8b640650 Mon Sep 17 00:00:00 2001 From: thekovic <72971433+thekovic@users.noreply.github.com> Date: Thu, 17 Nov 2022 03:54:12 +0100 Subject: [PATCH] Add README --- README.md | 16 ++++++++++++++++ src/main.rs | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..a0a135a --- /dev/null +++ b/README.md @@ -0,0 +1,16 @@ +# png_defringe_rs + +Using PNG Defringe can remove colored fringes from resampled and filtered graphics which have transparency, caused by the filtering picking color information from pixels that are meant to be fully transparent. + +## Installation + +You don't need to do anything to install png_defringe_rs, all you have to do is grab a release from the Releases page and unzip the archive. + +## Usage + + Usage: png_defringe.exe + --------------------------------------- + List of actions: + black - transparent pixels go towards black + avg - transparent pixels go towards the average of all opaque pixels + match - transparent pixels are interpolated to match their nearest neighbours diff --git a/src/main.rs b/src/main.rs index 92c81be..4fddc3b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -135,7 +135,7 @@ fn defringe_to_interpolation(img: &mut ImageBuffer, Vec>) { } fn print_usage() { - println!("Usage: png_defringe "); + println!("Usage: png_defringe.exe "); println!("---------------------------------------"); println!("List of actions:"); println!("\t black - transparent pixels go towards black");