summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2024-03-07 16:05:52 +0100
committerGitHub <noreply@github.com>2024-03-07 15:05:52 +0000
commit1d32145319211b6faed1f2ce4892347fde7a3f50 (patch)
tree177ac95f7e804d55ba9c407fb5dcacadea98c382 /tests
parenta483321aa08e435c159d19c0d559e2413c1272f9 (diff)
DPI-based natural sizing for images (#3571)
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/meta/figure.pngbin54193 -> 54114 bytes
-rw-r--r--tests/ref/visualize/image-scale.pngbin0 -> 314 bytes
-rw-r--r--tests/typ/visualize/image-scale.typ6
3 files changed, 6 insertions, 0 deletions
diff --git a/tests/ref/meta/figure.png b/tests/ref/meta/figure.png
index d37a01c3..bcdd0d2f 100644
--- a/tests/ref/meta/figure.png
+++ b/tests/ref/meta/figure.png
Binary files differ
diff --git a/tests/ref/visualize/image-scale.png b/tests/ref/visualize/image-scale.png
new file mode 100644
index 00000000..95e9157e
--- /dev/null
+++ b/tests/ref/visualize/image-scale.png
Binary files differ
diff --git a/tests/typ/visualize/image-scale.typ b/tests/typ/visualize/image-scale.typ
new file mode 100644
index 00000000..7ddf435e
--- /dev/null
+++ b/tests/typ/visualize/image-scale.typ
@@ -0,0 +1,6 @@
+// Test that images aren't upscaled.
+
+---
+// Image is just 48x80 at 220dpi. It should not be scaled to fit the page
+// width, but rather max out at its natural size.
+#image("/assets/images/f2t.jpg")