summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2021-10-24 12:02:22 -0400
committerTavian Barnes <tavianator@tavianator.com>2021-10-24 12:02:22 -0400
commitdea53e1b7ed7096d6db9485ea3a8bdeb04ad30a3 (patch)
tree1fa8ed24bd984264beddedd226dedf430f607ea0 /src/main.rs
parent4cc5f601d1b5a2a445f41bd5d7c9183e27a49656 (diff)
downloadkd-forest-dea53e1b7ed7096d6db9485ea3a8bdeb04ad30a3.tar.xz
Bump dependencies
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index fc7dfff..adb05b1 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -326,7 +326,7 @@ impl App {
self.get_colors(AllColors::new(r, g, b))
}
SourceArg::Image(ref path) => {
- let img = image::open(path)?.into_rgb();
+ let img = image::open(path)?.into_rgb8();
self.width.get_or_insert(img.width());
self.height.get_or_insert(img.height());
self.get_colors(ImageColors::from(img))
@@ -372,7 +372,7 @@ impl App {
match &self.args.frontier {
FrontierArg::Image(ref path) => {
- let img = image::open(path)?.into_rgb();
+ let img = image::open(path)?.into_rgb8();
self.paint_on(colors, ImageFrontier::<C>::new(&img))
}
FrontierArg::Min => {