summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
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 => {