We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5610c0d commit d9515e6Copy full SHA for d9515e6
test/run
@@ -46,10 +46,10 @@ function assert_svg {
46
grep -q svg "${1:?}" || fail "expected $1 to be an SVG"
47
}
48
49
-# checks the dimensions of an image, requires ImageMagick
+# checks the dimensions of an image
50
function assert_dimensions {
51
expected_dimensions="${1:?}"
52
- actual_dimensions=$(identify -format "%wx%h" "${2:?}")
+ actual_dimensions=$(file "${2:?}" | grep -oE "[0-9]+x[0-9]+")
53
54
if [ "$expected_dimensions" == "$actual_dimensions" ]; then
55
true
0 commit comments