Skip to content

Commit 681cfeb

Browse files
committed
Add README
1 parent 55e0931 commit 681cfeb

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

README.md

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# png_defringe_rs
2+
3+
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.
4+
5+
## Installation
6+
7+
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.
8+
9+
## Usage
10+
11+
Usage: png_defringe.exe <action> <input_file> <output_file>
12+
---------------------------------------
13+
List of actions:
14+
black - transparent pixels go towards black
15+
avg - transparent pixels go towards the average of all opaque pixels
16+
match - transparent pixels are interpolated to match their nearest neighbours

src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ fn defringe_to_interpolation(img: &mut ImageBuffer<Rgba<u8>, Vec<u8>>) {
135135
}
136136

137137
fn print_usage() {
138-
println!("Usage: png_defringe <action> <input_file> <output_file>");
138+
println!("Usage: png_defringe.exe <action> <input_file> <output_file>");
139139
println!("---------------------------------------");
140140
println!("List of actions:");
141141
println!("\t black - transparent pixels go towards black");

0 commit comments

Comments
 (0)