diff --git a/crates/texrra-tex-core/src/render.rs b/crates/texrra-tex-core/src/render.rs index 1f54734..338186e 100755 --- a/crates/texrra-tex-core/src/render.rs +++ b/crates/texrra-tex-core/src/render.rs @@ -622,8 +622,8 @@ impl Page { image, } => { let index = list.add_image(PdfImage { - width: (*width).max(0) as u32, - height: (*height).max(0) as u32, + width: image.width, + height: image.height, rgb: image.rgb.clone(), }); list.push(DisplayItem::Image {