summaryrefslogtreecommitdiff
path: root/tests/typ/image.typ
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2020-11-20 16:36:22 +0100
committerLaurenz <laurmaedje@gmail.com>2020-11-20 16:36:22 +0100
commitf105663037c44740b5aa02dea72a9b368bc003e0 (patch)
treeee97638bfba2be3cfba8c1191919447262f181d0 /tests/typ/image.typ
parent2e6e6244ccf73795d7d74cbc286fb0b43b404315 (diff)
Basic image support 🖼
- [image] function - Image rendering in tests - Supports JPEG and PNG - No PDF export so far
Diffstat (limited to 'tests/typ/image.typ')
-rw-r--r--tests/typ/image.typ13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/typ/image.typ b/tests/typ/image.typ
new file mode 100644
index 00000000..b0fd4b51
--- /dev/null
+++ b/tests/typ/image.typ
@@ -0,0 +1,13 @@
+[page: width=10cm, height=10cm, margins=1cm]
+
+[image: "res/tiger.jpg"]
+
+[pagebreak]
+
+[image: "res/tiger.jpg", width=3cm]
+[image: "res/tiger.jpg", height=3cm]
+
+[pagebreak]
+
+[align: center]
+[image: "res/tiger.jpg", width=6cm, height=6cm]