fix: fix image resizing

This commit is contained in:
Xiretza 2022-06-24 20:46:24 +02:00
parent 966d3027e3
commit dc94dc0347

View file

@ -245,7 +245,7 @@ fn main() -> anyhow::Result<()> {
Action::Clear => RgbImage::new(layout.width_px(), layout.height_px()), Action::Clear => RgbImage::new(layout.width_px(), layout.height_px()),
Action::Image { path } => ImageReader::open(path)? Action::Image { path } => ImageReader::open(path)?
.decode()? .decode()?
.resize_to_fill(layout.width_px(), layout.height_px(), FilterType::Gaussian) .resize(layout.width_px(), layout.height_px(), FilterType::Gaussian)
.into_rgb8(), .into_rgb8(),
Action::Animation { animation } => { Action::Animation { animation } => {
animate( animate(