diff --git a/term/src/terminalstate/iterm.rs b/term/src/terminalstate/iterm.rs index 31689bfbb..3ac253295 100644 --- a/term/src/terminalstate/iterm.rs +++ b/term/src/terminalstate/iterm.rs @@ -95,7 +95,10 @@ impl TerminalState { let downscaled = (width < info.width as usize) || (height < info.height as usize); let data = match (downscaled, info.format) { - (true, ImageFormat::Gif) | (true, ImageFormat::Png) | (false, _) => { + (true, ImageFormat::Gif) + | (true, ImageFormat::Png) + | (true, ImageFormat::WebP) + | (false, _) => { // Don't resample things that might be animations, // or things that don't need resampling ImageDataType::EncodedFile(image.data)