summaryrefslogtreecommitdiff
path: root/crates/typst-cli/src
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-11-08 13:11:11 +0100
committerLaurenz <laurmaedje@gmail.com>2023-11-08 13:16:13 +0100
commitec04c3de2fcc5b31d94dc2be8561e569f28cc0a1 (patch)
tree3b143ac30f82655824f6af0d73935eebc89d74ae /crates/typst-cli/src
parentc12a19a0758774a3285ee3d129803a786cd58a87 (diff)
Extract `typst-render` crate
Diffstat (limited to 'crates/typst-cli/src')
-rw-r--r--crates/typst-cli/src/compile.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/typst-cli/src/compile.rs b/crates/typst-cli/src/compile.rs
index b5cf0e54..80e19f1b 100644
--- a/crates/typst-cli/src/compile.rs
+++ b/crates/typst-cli/src/compile.rs
@@ -220,7 +220,7 @@ fn export_image(
match fmt {
ImageExportFormat::Png => {
let pixmap =
- typst::export::render(frame, command.ppi / 72.0, Color::WHITE);
+ typst_render::render(frame, command.ppi / 72.0, Color::WHITE);
pixmap
.save_png(path)
.map_err(|err| eco_format!("failed to write PNG file ({err})"))?;