diff --git a/crates/jxl-oxide/src/integration/image.rs b/crates/jxl-oxide/src/integration/image.rs index a09273e6..821f1def 100644 --- a/crates/jxl-oxide/src/integration/image.rs +++ b/crates/jxl-oxide/src/integration/image.rs @@ -386,33 +386,6 @@ impl image::ImageDecoder for JxlDecoder { } } -impl image::ImageDecoderRect for JxlDecoder { - fn read_rect( - &mut self, - x: u32, - y: u32, - width: u32, - height: u32, - buf: &mut [u8], - row_pitch: usize, - ) -> ImageResult<()> { - let crop = CropInfo { - width, - height, - left: x, - top: y, - }; - - self.read_image_inner(crop, buf, Some(row_pitch)) - .map_err(|e| { - ImageError::Decoding(DecodingError::new( - ImageFormatHint::PathExtension("jxl".into()), - e, - )) - }) - } -} - fn stream_to_buf( mut stream: crate::ImageStream<'_>, buf: &mut [u8],