Skip to content

Commit

Permalink
Fix info message and typos (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
fhanau authored and shssoichiro committed Jun 18, 2019
1 parent cc290c0 commit 5dcfe44
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ to give any extra compression gains and is not recommended.
PNG interlacing on any images that are processed. `-i 0` will remove interlacing from all
processed images. Not specifying either will keep the same interlacing state as the
input image. Note: Interlacing can add 25-50% to the size of an optimized image. Only use
it if you believe the benefits outweight the costs for your use case.
it if you believe the benefits outweigh the costs for your use case.
* Strip: Used to remove metadata info from processed images. Used via `--strip [safe,all]`.
Can save a few kilobytes if you don't need the metadata. "Safe" removes only metadata that
will never affect rendering of the image. "All" removes all metadata that is not critical
Expand Down
2 changes: 1 addition & 1 deletion README.template.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ to give any extra compression gains and is not recommended.
PNG interlacing on any images that are processed. `-i 0` will remove interlacing from all
processed images. Not specifying either will keep the same interlacing state as the
input image. Note: Interlacing can add 25-50% to the size of an optimized image. Only use
it if you believe the benefits outweight the costs for your use case.
it if you believe the benefits outweigh the costs for your use case.
* Strip: Used to remove metadata info from processed images. Used via `--strip [safe,all]`.
Can save a few kilobytes if you don't need the metadata. "Safe" removes only metadata that
will never affect rendering of the image. "All" removes all metadata that is not critical
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ fn optimize_png(
eprintln!(
" {} bits/pixel, {} colors in palette",
png.raw.ihdr.bit_depth,
palette.len() / 3
palette.len()
);
} else {
eprintln!(
Expand Down Expand Up @@ -824,7 +824,7 @@ fn report_reduction(png: &PngImage) {
eprintln!(
"Reducing image to {} bits/pixel, {} colors in palette",
png.ihdr.bit_depth,
palette.len() / 3
palette.len()
);
} else {
eprintln!(
Expand Down
2 changes: 1 addition & 1 deletion tests/flags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ fn interlacing_1_to_0_small_files() {

assert_eq!(png.raw.ihdr.interlaced, 0);
assert_eq!(png.raw.ihdr.color_type, ColorType::Indexed);
// the depth can't be asserted reliably, because on such small file different zlib implementaitons pick diferent depth as the best
// the depth can't be asserted reliably, because on such small file different zlib implementations pick different depth as the best

remove_file(output).ok();
}
Expand Down

0 comments on commit 5dcfe44

Please sign in to comment.