fast image operations
feeble attempt to fix docs.rs
| -rw-r--r-- | Cargo.toml | 4 | ||||
| -rw-r--r-- | src/scale.rs | 4 | ||||
| -rw-r--r-- | tdata/cat.png (renamed from src/cat.png) | bin | 2533832 -> 2533832 bytes | |||
| -rw-r--r-- | tdata/small_cat.png (renamed from src/small_cat.png) | bin | 75106 -> 75106 bytes |
4 files changed, 4 insertions, 4 deletions
@@ -1,12 +1,12 @@ [package] name = "fimg" -version = "0.4.6" +version = "0.4.7" authors = ["bend-n <[email protected]>"] license = "MIT" edition = "2021" description = "fast image operations" repository = "https://github.com/bend-n/fimg" -exclude = ["src/cat.png", "src/small_cat.png", "benches/"] +exclude = ["tdata", "benches/"] [dependencies] png = { version = "0.17", features = ["unstable"], optional = true } diff --git a/src/scale.rs b/src/scale.rs index 0ba614b..09fdf20 100644 --- a/src/scale.rs +++ b/src/scale.rs @@ -33,9 +33,9 @@ impl Nearest { #[test] fn test_nearest() { - let i = Image::<_, 3>::open("src/cat.png"); + let i = Image::<_, 3>::open("tdata/cat.png"); assert_eq!( unsafe { Nearest::scale(i.as_ref(), 268, 178) }.buffer, - Image::<_, 3>::open("src/small_cat.png").buffer + Image::<_, 3>::open("tdata/small_cat.png").buffer ); } diff --git a/src/cat.png b/tdata/cat.png Binary files differindex 361804d..361804d 100644 --- a/src/cat.png +++ b/tdata/cat.png diff --git a/src/small_cat.png b/tdata/small_cat.png Binary files differindex d39b082..d39b082 100644 --- a/src/small_cat.png +++ b/tdata/small_cat.png |