Files
John MacFarlane 968b0c13ee Typst writer: fix handling of pixel image dimensions.
These are now converted to inches as in the LaTeX writer.

Closes #9945.
2025-01-01 23:00:35 -08:00

486 B

% pandoc -t typst --dpi 300
![](image.jpg){width=300 height=300}
^D
#box(image("image.jpg", height: 1in, width: 1in))
% pandoc -t typst --dpi 600
![](image.jpg){width=300px height=300px}
^D
#box(image("image.jpg", height: 0.5in, width: 0.5in))
% pandoc -t typst --dpi 600
![](image.jpg){width=1in height=3cm}
^D
#box(image("image.jpg", height: 3cm, width: 1in))
% pandoc -t typst --dpi 600
![](image.jpg){.foo .bar baz=3}
^D
#box(image("image.jpg"))